-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreact.js
30 lines (29 loc) · 920 Bytes
/
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
module.exports = {
extends: 'plugin:react/recommended',
plugins: ['react'],
rules: {
'react/forbid-prop-types': 'off',
'react/jsx-filename-extension': 'off',
'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
'react/jsx-no-bind': ['error', {
ignoreRefs: true,
allowArrowFunctions: false,
allowBind: false,
}],
'react/jsx-no-undef': ['error', { allowGlobals: true }],
'react/no-danger': 'off',
'react/no-multi-comp': 'off',
'react/prefer-stateless-function': 'off',
'react/require-default-props': 'off',
'react/sort-comp': ['error', {
order: [
'type-annotations',
'static-methods',
'lifecycle',
'everything-else',
'render',
],
}],
},
};