Skip to content

Commit

Permalink
feat: add react hooks plugin for react eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
amille44420 committed May 28, 2020
1 parent 3d9ddd8 commit 2e1d922
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion react.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const { rules } = require('./index');

module.exports = {
plugins: ['prettier'],
plugins: ['prettier', 'react-hooks'],
extends: ['airbnb', 'prettier', 'prettier/react'],
rules: {
...rules,
Expand Down Expand Up @@ -30,5 +30,6 @@ module.exports = {
],
'react/require-default-props': 'off',
'react/sort-prop-types': 'error',
'react-hooks/exhaustive-deps': 'warn',
},
};

0 comments on commit 2e1d922

Please sign in to comment.