Skip to content

Commit

Permalink
feat: Add react-hooks rules (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcompiles authored Feb 6, 2019
1 parent f9ecd94 commit 10069f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ module.exports = {
'react/jsx-sort-props': 'off',
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'react-hooks/rules-of-hooks': 'error',

// import errors
'import/no-unresolved': [
Expand All @@ -215,7 +216,7 @@ module.exports = {
'import/default': 'error',
'import/export': 'error'
},
plugins: ['react', 'css-modules', 'import', 'flowtype', 'cypress'],
plugins: ['react', 'react-hooks', 'css-modules', 'import', 'flowtype', 'cypress'],
extends: [
'plugin:css-modules/recommended',
'prettier',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"eslint-plugin-flowtype": "^3.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-react": "^7.11.1",
"eslint-plugin-react-hooks": "^1.0.1",
"find-root": "^1.1.0",
"typescript": "^3.1.3",
"typescript-eslint-parser": "^20.0.0"
Expand Down

0 comments on commit 10069f5

Please sign in to comment.