-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathreact.js
More file actions
26 lines (26 loc) · 886 Bytes
/
Copy pathreact.js
File metadata and controls
26 lines (26 loc) · 886 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module.exports = {
rules: {
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'react/no-unknown-property': 'error',
'react/react-in-jsx-scope': 'error',
'react/prop-types': 'off',
'react/require-default-props': 'error',
'react/jsx-boolean-value': 'error',
'react/no-unused-state': 'error',
'react/jsx-no-duplicate-props': 'error',
'react/jsx-key': 'error',
'react/require-render-return': 'error',
'react/no-redundant-should-component-update': 'error',
'react/no-direct-mutation-state': 'error',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn',
},
extends: ['plugin:react/recommended'],
plugins: ['react', 'react-hooks'],
settings: {
react: {
version: 'detect',
},
},
};