@@ -5,6 +5,13 @@ module.exports = {
5
5
'react'
6
6
] ,
7
7
rules : {
8
+ 'react/boolean-prop-naming' : 0 ,
9
+ 'react/default-props-match-prop-types' : 2 ,
10
+ 'react/display-name' : 0 ,
11
+ 'react/forbid-component-props' : 0 ,
12
+ 'react/forbid-elements' : 0 ,
13
+ 'react/forbid-foreign-prop-types' : 2 ,
14
+ 'react/forbid-prop-types' : 0 ,
8
15
'react/jsx-equals-spacing' : 2 ,
9
16
'react/jsx-filename-extension' : 0 ,
10
17
'react/jsx-first-prop-new-line' : [ 2 , 'multiline' ] ,
@@ -20,8 +27,6 @@ module.exports = {
20
27
beforeSelfClosing : 'always' ,
21
28
afterOpening : 'never' ,
22
29
} ] ,
23
- 'react/display-name' : 0 ,
24
- 'react/forbid-prop-types' : 0 ,
25
30
'react/jsx-boolean-value' : 2 ,
26
31
'react/jsx-closing-bracket-location' : 0 ,
27
32
'react/jsx-curly-spacing' : 2 ,
@@ -35,45 +40,39 @@ module.exports = {
35
40
'react/jsx-uses-react' : 2 ,
36
41
'react/jsx-uses-vars' : 2 ,
37
42
'react/jsx-wrap-multilines' : 2 ,
43
+ 'react/jsx-closing-tag-location' : 2 ,
38
44
'react/no-danger' : 0 ,
45
+ 'react/no-deprecated' : 2 ,
39
46
'react/no-did-mount-set-state' : 2 ,
40
47
'react/no-did-update-set-state' : 2 ,
41
48
'react/no-direct-mutation-state' : 2 ,
42
49
'react/no-find-dom-node' : 2 ,
43
50
'react/no-multi-comp' : 0 ,
44
51
'react/no-set-state' : 0 ,
45
52
'react/no-unknown-property' : 2 ,
46
- 'react/prop-types' : 0 ,
47
- 'react/react-in-jsx-scope' : 2 ,
48
- 'react/self-closing-comp' : 2 ,
49
- 'react/sort-comp' : 2 ,
50
- 'react/jsx-wrap-multilines' : 2 ,
51
- 'react/no-deprecated' : 2 ,
52
53
'react/no-is-mounted' : 2 ,
53
54
'react/no-render-return-value' : 2 ,
54
55
'react/no-string-refs' : 0 ,
55
- 'react/prefer-es6-class' : 2 ,
56
- 'react/prefer-stateless-function' : 0 ,
57
- 'react/require-optimization' : 0 ,
58
- 'react/require-render-return' : 2 ,
59
- 'react/sort-prop-types' : 0 ,
60
- 'react/forbid-component-props' : 0 ,
61
- 'react/forbid-foreign-prop-types' : 2 ,
62
56
'react/no-children-prop' : 2 ,
63
57
'react/no-unescaped-entities' : 2 ,
64
58
'react/no-will-update-set-state' : 2 ,
65
- 'react/style-prop-object' : 2 ,
66
- 'react/forbid-elements' : 0 ,
67
59
'react/no-danger-with-children' : 2 ,
68
- 'react/require-default-props' : 0 ,
69
60
'react/no-array-index-key' : 2 ,
70
61
'react/no-unused-prop-types' : 2 ,
71
- 'react/void-dom-elements-no-children' : 2 ,
72
- 'react/boolean-prop-naming' : 0 ,
73
- 'react/default-props-match-prop-types' : 2 ,
74
- 'react/jsx-closing-tag-location' : 2 ,
75
62
'react/no-redundant-should-component-update' : 2 ,
76
63
'react/no-typos' : 2 ,
77
64
'react/no-unused-state' : 2 ,
65
+ 'react/prefer-es6-class' : 2 ,
66
+ 'react/prefer-stateless-function' : 0 ,
67
+ 'react/prop-types' : 0 ,
68
+ 'react/react-in-jsx-scope' : 2 ,
69
+ 'react/require-optimization' : 0 ,
70
+ 'react/require-render-return' : 2 ,
71
+ 'react/require-default-props' : 0 ,
72
+ 'react/self-closing-comp' : 2 ,
73
+ 'react/sort-comp' : 2 ,
74
+ 'react/sort-prop-types' : 0 ,
75
+ 'react/style-prop-object' : 2 ,
76
+ 'react/void-dom-elements-no-children' : 2 ,
78
77
}
79
78
}
0 commit comments