Skip to content

Commit

Permalink
feat(index): Added flowtype eslint plugin (#20)
Browse files Browse the repository at this point in the history
Currently sku lint uses the eslint-config-seek as it's eslint config. In projects using eslint and
flow, the configuration would need to be updated for flow utility types (as an example) that will
report an eslint error when used.
  • Loading branch information
tamoore authored Feb 28, 2018
1 parent 45d0c4c commit cd2dfa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,6 @@ module.exports = {
'import/default': 'error',
'import/export': 'error'
},
plugins: ['react', 'css-modules', 'import'],
extends: ['plugin:css-modules/recommended', 'prettier']
plugins: ['react', 'css-modules', 'import', 'flowtype'],
extends: ['plugin:css-modules/recommended', 'prettier', 'plugin:flowtype/recommended']
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"eslint-config-prettier": "^2.3.0",
"eslint-import-resolver-node": "^0.3.0",
"eslint-plugin-css-modules": "^2.7.1",
"eslint-plugin-flowtype": "^2.46.1",
"eslint-plugin-import": "^2.2.0",
"eslint-plugin-react": "^7.0.1",
"find-root": "^1.1.0"
Expand Down

0 comments on commit cd2dfa7

Please sign in to comment.