From 2cb81d8e2d522fbcfcea93bbed7a875bbb278473 Mon Sep 17 00:00:00 2001 From: Alex Okrushko Date: Thu, 5 Jul 2018 12:41:00 -0400 Subject: [PATCH] chore: Turn prettier back on and just use comments for ignored lines (#1174) --- modules/effects/src/effects_metadata.ts | 5 +---- modules/store-devtools/src/reducer.ts | 1 + prettier.config.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/effects/src/effects_metadata.ts b/modules/effects/src/effects_metadata.ts index 56db0f382c..e85fad1e51 100644 --- a/modules/effects/src/effects_metadata.ts +++ b/modules/effects/src/effects_metadata.ts @@ -40,10 +40,7 @@ export function getSourceForInstance(instance: T): T { } export function getSourceMetadata(instance: T): Array> { - return compose( - getEffectMetadataEntries, - getSourceForInstance - )(instance); + return compose(getEffectMetadataEntries, getSourceForInstance)(instance); } export type EffectsMetadata = { [key in keyof T]?: { dispatch: boolean } }; diff --git a/modules/store-devtools/src/reducer.ts b/modules/store-devtools/src/reducer.ts index 43a1943f2b..cb2e9fb85c 100644 --- a/modules/store-devtools/src/reducer.ts +++ b/modules/store-devtools/src/reducer.ts @@ -330,6 +330,7 @@ export function liftReducerWith( skippedActionIds, committedState, currentStateIndex, + // prettier-ignore computedStates } = liftedAction.nextLiftedState); break; diff --git a/prettier.config.js b/prettier.config.js index 8589369152..a425d3f761 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,4 +1,4 @@ module.exports = { singleQuote: true, - trailingComma: 'none', + trailingComma: 'es5', };