-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreact.js
38 lines (36 loc) · 1.15 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
33
34
35
36
37
38
'use strict';
module.exports = {
extends: require.resolve('./base'),
parserOptions: {
ecmaFeatures: {
jsx: true
}
},
plugins: ['react'],
rules: {
'react/default-props-match-prop-types': 'error',
'react/display-name': 'error',
'react/forbid-foreign-prop-types': 'error',
'react/no-access-state-in-setstate': 'error',
'react/no-children-prop': 'error',
'react/no-danger': 'error',
'react/no-deprecated': 'error',
'react/no-direct-mutation-state': 'error',
'react/no-redundant-should-component-update': 'error',
'react/no-string-refs': 'error',
'react/no-this-in-sfc': 'error',
'react/no-typos': 'error',
'react/no-unknown-property': 'error',
'react/no-will-update-set-state': 'error',
'react/prop-types': 'error',
'react/react-in-jsx-scope': 'error',
'react/require-render-return': 'error',
'react/style-prop-object': 'error',
'react/jsx-boolean-value': ['error', 'always'],
'react/jsx-no-duplicate-props': 'error',
'react/jsx-no-target-blank': 'error',
'react/jsx-no-undef': 'error',
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error'
}
};