From f4b4416ea52d564bc2dbe543a82084ed98843ccc Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Fri, 30 Jul 2021 10:54:54 +0200 Subject: chore: migrate from tslint to @typescript-eslint (#1706) - update .eslintrc to work for .js and .ts - update devDependencies - lint properly both root /src and nested /packages - update webhint recommended setting for tsconfig.json to shrink output - Manage all eslint rules from the repo root - escape single quotes in scripts to please windows build Co-authored-by: Vijay A --- src/features/utils/ActionBinding.js | 4 ++-- src/features/utils/FeatureStore.js | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/features/utils') diff --git a/src/features/utils/ActionBinding.js b/src/features/utils/ActionBinding.js index 497aa071b..787166d44 100644 --- a/src/features/utils/ActionBinding.js +++ b/src/features/utils/ActionBinding.js @@ -24,6 +24,6 @@ export default class ActionBinding { } } -export const createActionBindings = actions => ( - actions.map(a => new ActionBinding(a)) +export const createActionBindings = (actions) => ( + actions.map((a) => new ActionBinding(a)) ); diff --git a/src/features/utils/FeatureStore.js b/src/features/utils/FeatureStore.js index 0bc10e176..4d4e217a9 100644 --- a/src/features/utils/FeatureStore.js +++ b/src/features/utils/FeatureStore.js @@ -16,11 +16,11 @@ export class FeatureStore { } _startActions(actions = this._actions) { - actions.forEach(a => a.start()); + actions.forEach((a) => a.start()); } _stopActions(actions = this._actions) { - actions.forEach(a => a.stop()); + actions.forEach((a) => a.stop()); } // REACTIONS @@ -31,10 +31,10 @@ export class FeatureStore { } _startReactions(reactions = this._reactions) { - reactions.forEach(r => r.start()); + reactions.forEach((r) => r.start()); } _stopReactions(reactions = this._reactions) { - reactions.forEach(r => r.stop()); + reactions.forEach((r) => r.stop()); } } -- cgit v1.2.3-54-g00ecf