From e110e0112cb87d63c5c359301c838b8262cf6c07 Mon Sep 17 00:00:00 2001 From: Ben Woosley Date: Fri, 12 Jan 2018 14:42:38 -0800 Subject: [PATCH] fix(eslint-flowtypes): Enable plugin:flowtype/recommended Ignore all of flow-typed The module_vx.x.x.js's purpose is mysterious and it's causing lint failures on CI. Excluding it seems reasonable. --- .eslintignore | 2 +- .eslintrc | 3 ++- app/store/configureStore.dev.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.eslintignore b/.eslintignore index 3f90da49..34379c46 100644 --- a/.eslintignore +++ b/.eslintignore @@ -33,7 +33,7 @@ app/node_modules # flow-typed flow-typed/npm/* -!flow-typed/npm/module_vx.x.x.js +flow-typed/module_vx.x.x.js # App packaged release diff --git a/.eslintrc b/.eslintrc index 634ac94c..d6b8b649 100644 --- a/.eslintrc +++ b/.eslintrc @@ -6,7 +6,8 @@ }, "extends": [ "airbnb", - "plugin:react/recommended" + "plugin:react/recommended", + "plugin:flowtype/recommended" ], "env": { "browser": true, diff --git a/app/store/configureStore.dev.js b/app/store/configureStore.dev.js index 2fddc6fe..ac021841 100644 --- a/app/store/configureStore.dev.js +++ b/app/store/configureStore.dev.js @@ -8,7 +8,7 @@ import ipc from '../reducers/ipc' const history = createHashHistory() -const configureStore = (initialState?: counterStateType) => { +const configureStore = (initialState) => { // Redux Configuration const middleware = [] const enhancers = []