Browse Source

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.
renovate/lint-staged-8.x
Ben Woosley 7 years ago
parent
commit
e110e0112c
No known key found for this signature in database GPG Key ID: 6EE5F3785F78B345
  1. 2
      .eslintignore
  2. 3
      .eslintrc
  3. 2
      app/store/configureStore.dev.js

2
.eslintignore

@ -33,7 +33,7 @@ app/node_modules
# flow-typed # flow-typed
flow-typed/npm/* flow-typed/npm/*
!flow-typed/npm/module_vx.x.x.js flow-typed/module_vx.x.x.js
# App packaged # App packaged
release release

3
.eslintrc

@ -6,7 +6,8 @@
}, },
"extends": [ "extends": [
"airbnb", "airbnb",
"plugin:react/recommended" "plugin:react/recommended",
"plugin:flowtype/recommended"
], ],
"env": { "env": {
"browser": true, "browser": true,

2
app/store/configureStore.dev.js

@ -8,7 +8,7 @@ import ipc from '../reducers/ipc'
const history = createHashHistory() const history = createHashHistory()
const configureStore = (initialState?: counterStateType) => { const configureStore = (initialState) => {
// Redux Configuration // Redux Configuration
const middleware = [] const middleware = []
const enhancers = [] const enhancers = []

Loading…
Cancel
Save