-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact.js
32 lines (32 loc) · 1.08 KB
/
react.js
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
27
28
29
30
31
32
module.exports = {
extends: [
'plugin:react/all',
'plugin:react-hooks/recommended',
],
rules: {
'react-hooks/exhaustive-deps': 'off',
'react/destructuring-assignment': 'off',
'react/forbid-dom-props': 'off',
'react/forbid-elements': 'off',
'react/function-component-definition': 'off',
'react/jsx-indent': ['error', 2],
'react/jsx-indent-props': ['error', 2],
'react/jsx-filename-extension': 'off',
'react/jsx-max-depth': 'off',
'react/jsx-max-props-per-line': 'off',
'react/jsx-newline': 'off',
'react/jsx-no-bind': 'off',
'react/jsx-no-literals': 'off',
'react/jsx-one-expression-per-line': ['error', { 'allow': 'single-child' }],
'react/jsx-sort-default-props': 'off',
'react/jsx-sort-props': 'off',
'react/no-array-index-key': 'off',
'react/no-set-state': 'off',
'react/prefer-read-only-props': 'off',
'react/prefer-stateless-function': 'off',
'react/prop-types': 'off',
'react/require-optimization': 'off',
'react/sort-prop-types': 'off',
'react/static-property-placement': 'off',
},
}