@@ -74,6 +74,24 @@ Finally, enable all of the rules that you would like to use.
7474 "rules" : {
7575 "react/display-name" : 1 ,
7676 "react/forbid-prop-types" : 1 ,
77+ "react/no-danger" : 1 ,
78+ "react/no-deprecated" : 1 ,
79+ "react/no-did-mount-set-state" : 1 ,
80+ "react/no-did-update-set-state" : 1 ,
81+ "react/no-direct-mutation-state" : 1 ,
82+ "react/no-is-mounted" : 1 ,
83+ "react/no-multi-comp" : 1 ,
84+ "react/no-set-state" : 1 ,
85+ "react/no-string-refs" : 1 ,
86+ "react/no-unknown-property" : 1 ,
87+ "react/prefer-es6-class" : 1 ,
88+ "react/prop-types" : 1 ,
89+ "react/react-in-jsx-scope" : 1 ,
90+ "react/require-extension" : 1 ,
91+ "react/self-closing-comp" : 1 ,
92+ "react/sort-comp" : 1 ,
93+ "react/wrap-multilines" : 1 ,
94+
7795 "react/jsx-boolean-value" : 1 ,
7896 "react/jsx-closing-bracket-location" : 1 ,
7997 "react/jsx-curly-spacing" : 1 ,
@@ -92,24 +110,7 @@ Finally, enable all of the rules that you would like to use.
92110 "react/jsx-sort-props" : 1 ,
93111 "react/jsx-space-before-closing" : 1 ,
94112 "react/jsx-uses-react" : 1 ,
95- "react/jsx-uses-vars" : 1 ,
96- "react/no-danger" : 1 ,
97- "react/no-deprecated" : 1 ,
98- "react/no-did-mount-set-state" : 1 ,
99- "react/no-did-update-set-state" : 1 ,
100- "react/no-direct-mutation-state" : 1 ,
101- "react/no-is-mounted" : 1 ,
102- "react/no-multi-comp" : 1 ,
103- "react/no-set-state" : 1 ,
104- "react/no-string-refs" : 1 ,
105- "react/no-unknown-property" : 1 ,
106- "react/prefer-es6-class" : 1 ,
107- "react/prop-types" : 1 ,
108- "react/react-in-jsx-scope" : 1 ,
109- "react/require-extension" : 1 ,
110- "react/self-closing-comp" : 1 ,
111- "react/sort-comp" : 1 ,
112- "react/wrap-multilines" : 1
113+ "react/jsx-uses-vars" : 1
113114 }
114115}
115116```
@@ -118,6 +119,26 @@ Finally, enable all of the rules that you would like to use.
118119
119120* [ display-name] ( docs/rules/display-name.md ) : Prevent missing ` displayName ` in a React component definition
120121* [ forbid-prop-types] ( docs/rules/forbid-prop-types.md ) : Forbid certain propTypes
122+ * [ no-danger] ( docs/rules/no-danger.md ) : Prevent usage of dangerous JSX properties
123+ * [ no-deprecated] ( docs/rules/no-deprecated.md ) : Prevent usage of deprecated methods
124+ * [ no-did-mount-set-state] ( docs/rules/no-did-mount-set-state.md ) : Prevent usage of ` setState ` in ` componentDidMount `
125+ * [ no-did-update-set-state] ( docs/rules/no-did-update-set-state.md ) : Prevent usage of ` setState ` in ` componentDidUpdate `
126+ * [ no-direct-mutation-state] ( docs/rules/no-direct-mutation-state.md ) : Prevent direct mutation of ` this.state `
127+ * [ no-is-mounted] ( docs/rules/no-is-mounted.md ) : Prevent usage of ` isMounted `
128+ * [ no-multi-comp] ( docs/rules/no-multi-comp.md ) : Prevent multiple component definition per file
129+ * [ no-set-state] ( docs/rules/no-set-state.md ) : Prevent usage of ` setState `
130+ * [ no-string-refs] ( docs/rules/no-string-refs.md ) : Prevent using string references in ` ref ` attribute.
131+ * [ no-unknown-property] ( docs/rules/no-unknown-property.md ) : Prevent usage of unknown DOM property (fixable)
132+ * [ prefer-es6-class] ( docs/rules/prefer-es6-class.md ) : Enforce ES5 or ES6 class for React Components
133+ * [ prop-types] ( docs/rules/prop-types.md ) : Prevent missing props validation in a React component definition
134+ * [ react-in-jsx-scope] ( docs/rules/react-in-jsx-scope.md ) : Prevent missing ` React ` when using JSX
135+ * [ require-extension] ( docs/rules/require-extension.md ) : Restrict file extensions that may be required
136+ * [ self-closing-comp] ( docs/rules/self-closing-comp.md ) : Prevent extra closing tags for components without children
137+ * [ sort-comp] ( docs/rules/sort-comp.md ) : Enforce component methods order
138+ * [ wrap-multilines] ( docs/rules/wrap-multilines.md ) : Prevent missing parentheses around multilines JSX (fixable)
139+
140+ ### JSX-specific rules
141+
121142* [ jsx-boolean-value] ( docs/rules/jsx-boolean-value.md ) : Enforce boolean attributes notation in JSX (fixable)
122143* [ jsx-closing-bracket-location] ( docs/rules/jsx-closing-bracket-location.md ) : Validate closing bracket location in JSX
123144* [ jsx-curly-spacing] ( docs/rules/jsx-curly-spacing.md ) : Enforce or disallow spaces inside of curly braces in JSX attributes (fixable)
@@ -137,23 +158,6 @@ Finally, enable all of the rules that you would like to use.
137158* [ jsx-space-before-closing] ( docs/rules/jsx-space-before-closing.md ) : Validate spacing before closing bracket in JSX (fixable)
138159* [ jsx-uses-react] ( docs/rules/jsx-uses-react.md ) : Prevent React to be incorrectly marked as unused
139160* [ jsx-uses-vars] ( docs/rules/jsx-uses-vars.md ) : Prevent variables used in JSX to be incorrectly marked as unused
140- * [ no-danger] ( docs/rules/no-danger.md ) : Prevent usage of dangerous JSX properties
141- * [ no-deprecated] ( docs/rules/no-deprecated.md ) : Prevent usage of deprecated methods
142- * [ no-did-mount-set-state] ( docs/rules/no-did-mount-set-state.md ) : Prevent usage of ` setState ` in ` componentDidMount `
143- * [ no-did-update-set-state] ( docs/rules/no-did-update-set-state.md ) : Prevent usage of ` setState ` in ` componentDidUpdate `
144- * [ no-direct-mutation-state] ( docs/rules/no-direct-mutation-state.md ) : Prevent direct mutation of ` this.state `
145- * [ no-is-mounted] ( docs/rules/no-is-mounted.md ) : Prevent usage of ` isMounted `
146- * [ no-multi-comp] ( docs/rules/no-multi-comp.md ) : Prevent multiple component definition per file
147- * [ no-set-state] ( docs/rules/no-set-state.md ) : Prevent usage of ` setState `
148- * [ no-string-refs] ( docs/rules/no-string-refs.md ) : Prevent using string references in ` ref ` attribute.
149- * [ no-unknown-property] ( docs/rules/no-unknown-property.md ) : Prevent usage of unknown DOM property (fixable)
150- * [ prefer-es6-class] ( docs/rules/prefer-es6-class.md ) : Enforce ES5 or ES6 class for React Components
151- * [ prop-types] ( docs/rules/prop-types.md ) : Prevent missing props validation in a React component definition
152- * [ react-in-jsx-scope] ( docs/rules/react-in-jsx-scope.md ) : Prevent missing ` React ` when using JSX
153- * [ require-extension] ( docs/rules/require-extension.md ) : Restrict file extensions that may be required
154- * [ self-closing-comp] ( docs/rules/self-closing-comp.md ) : Prevent extra closing tags for components without children
155- * [ sort-comp] ( docs/rules/sort-comp.md ) : Enforce component methods order
156- * [ wrap-multilines] ( docs/rules/wrap-multilines.md ) : Prevent missing parentheses around multilines JSX (fixable)
157161
158162## React Native
159163
0 commit comments