@paratco/eslint-config 0.7.4 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,421 +1,425 @@
1
- export default {
2
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/boolean-prop-naming.md
3
- // Enforces consistent naming for boolean props
4
- "react/boolean-prop-naming": ["error"],
5
-
6
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/button-has-type.md
7
- // Disallow usage of button elements without an explicit type attribute
8
- "react/button-has-type": ["error"],
9
-
10
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/checked-requires-onchange-or-readonly.md
11
- // Enforce using onChange or readonly attribute when checked is used
12
- "react/checked-requires-onchange-or-readonly": ["off"],
13
-
14
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/default-props-match-prop-types.md
15
- // Enforce all defaultProps have a corresponding non-required PropType
16
- "react/default-props-match-prop-types": ["error"],
17
-
18
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/destructuring-assignment.md
19
- // Enforce consistent usage of destructuring assignment of props, state, and context
20
- "react/destructuring-assignment": ["warn"],
21
-
22
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/display-name.md
23
- // Disallow missing displayName in a React component definition
24
- "react/display-name": ["error"],
25
-
26
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/forbid-component-props.md
27
- // Disallow certain props on components
28
- "react/forbid-component-props": ["off"],
29
-
30
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/forbid-dom-props.md
31
- // Disallow certain props on DOM Nodes
32
- "react/forbid-dom-props": ["off"],
33
-
34
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/forbid-elements.md
35
- // Disallow certain elements
36
- "react/forbid-elements": ["off"],
37
-
38
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/forbid-foreign-prop-types.md
39
- // Disallow using another component's propTypes
40
- "react/forbid-foreign-prop-types": ["error"],
41
-
42
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/forbid-prop-types.md
43
- // Disallow certain propTypes
44
- "react/forbid-prop-types": ["error"],
45
-
46
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/function-component-definition.md
47
- // Enforce a specific function type for function components
48
- "react/function-component-definition": ["warn"],
49
-
50
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/hook-use-state.md
51
- // Ensure destructuring and symmetric naming of useState hook value and setter variables
52
- "react/hook-use-state": ["error"],
53
-
54
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/iframe-missing-sandbox.md
55
- // Enforce sandbox attribute on iframe elements
56
- "react/iframe-missing-sandbox": ["error"],
57
-
58
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md
59
- // Enforce boolean attributes notation in JSX
60
- "react/jsx-boolean-value": ["warn", "always"],
61
-
62
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-child-element-spacing.md
63
- // Enforce or disallow spaces inside curly braces in JSX attributes and expressions
64
- "react/jsx-child-element-spacing": ["error"],
65
-
66
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-closing-bracket-location.md
67
- // Enforce closing bracket location in JSX
68
- // Use similar stylistic rule instead
69
- "react/jsx-closing-bracket-location": ["off"],
70
-
71
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md
72
- // Enforce closing tag location for multiline JSX
73
- // Use similar stylistic rule instead
74
- "react/jsx-closing-tag-location": ["off"],
75
-
76
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-brace-presence.md
77
- // Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
78
- // Use similar stylistic rule instead
79
- "react/jsx-curly-brace-presence": ["off"],
80
-
81
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-newline.md
82
- // Enforce consistent linebreaks in curly braces in JSX attributes and expressions
83
- // Use similar stylistic rule instead
84
- "react/jsx-curly-newline": ["off"],
85
-
86
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md
87
- // Enforce or disallow spaces inside curly braces in JSX attributes and expressions
88
- // Use similar stylistic rule instead
89
- "react/jsx-curly-spacing": ["off"],
90
-
91
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-equals-spacing.md
92
- // Enforce or disallow spaces around equal signs in JSX attributes
93
- // Use similar stylistic rule instead
94
- "react/jsx-equals-spacing": ["off"],
95
-
96
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md
97
- // Disallow file extensions that may contain JSX
98
- "react/jsx-filename-extension": ["error", { allow: "always", extensions: [".tsx"] }],
99
-
100
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-first-prop-new-line.md
101
- // Enforce proper position of the first property in JSX
102
- // Use similar stylistic rule instead
103
- "react/jsx-first-prop-new-line": ["off"],
104
-
105
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-fragments.md
106
- // Enforce shorthand or standard form for React fragments
107
- "react/jsx-fragments": ["warn"],
108
-
109
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-handler-names.md
110
- // Enforce event handler naming conventions in JSX
111
- "react/jsx-handler-names": ["error"],
112
-
113
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-indent.md
114
- // Enforce JSX indentation
115
- // Use similar stylistic rule instead
116
- "react/jsx-indent": ["off"],
117
-
118
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-indent-props.md
119
- // Enforce props indentation in JSX
120
- // Use similar stylistic rule instead
121
- "react/jsx-indent-props": ["off"],
122
-
123
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-key.md
124
- // Disallow missing key props in iterators/collection literals
125
- "react/jsx-key": ["error"],
126
-
127
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-max-depth.md
128
- // Enforce JSX maximum depth
129
- "react/jsx-max-depth": ["off"],
130
-
131
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-max-props-per-line.md
132
- // Enforce maximum of props on a single line in JSX
133
- // Use similar stylistic rule instead
134
- "react/jsx-max-props-per-line": ["off"],
135
-
136
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-newline.md
137
- // Require or prevent a new line after jsx elements and expressions
138
- // Use similar stylistic rule instead
139
- "react/jsx-newline": ["off"],
140
-
141
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
142
- // Disallow .bind() or arrow functions in JSX props
143
- "react/jsx-no-bind": [
144
- "error",
145
- {
146
- allowArrowFunctions: true
147
- }
148
- ],
149
-
150
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-comment-textnodes.md
151
- // Disallow comments from being inserted as text nodes
152
- "react/jsx-no-comment-textnodes": ["error"],
153
-
154
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-constructed-context-values.md
155
- // Disallows JSX context provider values from taking values that will cause needless renders
156
- "react/jsx-no-constructed-context-values": ["error"],
157
-
158
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
159
- // Disallow duplicate properties in JSX
160
- "react/jsx-no-duplicate-props": ["error"],
161
-
162
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-leaked-render.md
163
- // Disallow problematic leaked values from being rendered
164
- "react/jsx-no-leaked-render": ["warn"],
165
-
166
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-literals.md
167
- // Disallow usage of string literals in JSX
168
- "react/jsx-no-literals": ["off"],
169
-
170
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-script-url.md
171
- // Disallow usage of javascript: URLs
172
- "react/jsx-no-script-url": ["error"],
173
-
174
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md
175
- // Disallow target="_blank" attribute without rel="noreferrer"
176
- "react/jsx-no-target-blank": ["warn"],
177
-
178
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-undef.md
179
- // Disallow undeclared variables in JSX
180
- "react/jsx-no-undef": ["error"],
181
-
182
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-useless-fragment.md
183
- // Disallow unnecessary fragments
184
- "react/jsx-no-useless-fragment": ["warn"],
185
-
186
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-one-expression-per-line.md
187
- // Require one JSX element per line
188
- // Use similar stylistic rule instead
189
- "react/jsx-one-expression-per-line": ["off"],
190
-
191
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-pascal-case.md
192
- // Enforce PascalCase for user-defined JSX components
193
- // Use similar stylistic rule instead
194
- "react/jsx-pascal-case": ["off"],
195
-
196
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-multi-spaces.md
197
- // Disallow multiple spaces between inline JSX props
198
- // Use similar stylistic rule instead
199
- "react/jsx-props-no-multi-spaces": ["off"],
200
-
201
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-spreading.md
202
- // Disallow JSX prop spreading
203
- "react/jsx-props-no-spreading": ["off"],
204
-
205
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md
206
- // Enforce props alphabetical sorting
207
- // Use similar stylistic rule instead
208
- "react/jsx-sort-props": ["off"],
209
-
210
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-tag-spacing.md
211
- // Enforce whitespace in and around the JSX opening and closing brackets
212
- // Use similar stylistic rule instead
213
- "react/jsx-tag-spacing": ["off"],
214
-
215
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-uses-react.md
216
- // Disallow React to be incorrectly marked as unused
217
- "react/jsx-uses-react": ["error"],
218
-
219
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-uses-vars.md
220
- // Disallow variables used in JSX to be incorrectly marked as unused
221
- "react/jsx-uses-vars": ["error"],
222
-
223
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-wrap-multilines.md
224
- // Disallow missing parentheses around multiline JSX
225
- // Use similar stylistic rule instead
226
- "react/jsx-wrap-multilines": ["off"],
227
-
228
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-access-state-in-setstate.md
229
- // Disallow when this.state is accessed within setState
230
- "react/no-access-state-in-setstate": ["error"],
231
-
232
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-adjacent-inline-elements.md
233
- // Disallow adjacent inline elements not separated by whitespace.
234
- "react/no-adjacent-inline-elements": ["error"],
235
-
236
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-array-index-key.md
237
- // Disallow usage of Array index in keys
238
- "react/no-array-index-key": ["error"],
239
-
240
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-arrow-function-lifecycle.md
241
- // Lifecycle methods should be methods on the prototype, not class fields
242
- "react/no-arrow-function-lifecycle": ["warn"],
243
-
244
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md
245
- // Disallow passing of children as props
246
- "react/no-children-prop": ["error"],
247
-
248
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-danger.md
249
- // Disallow usage of dangerous JSX properties
250
- "react/no-danger": ["error"],
251
-
252
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-danger-with-children.md
253
- // Disallow when a DOM element is using both children and dangerouslySetInnerHTML
254
- "react/no-danger-with-children": ["error"],
255
-
256
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-deprecated.md
257
- // Disallow usage of deprecated methods
258
- "react/no-deprecated": ["error"],
259
-
260
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-did-mount-set-state.md
261
- // Disallow usage of setState in componentDidMount
262
- "react/no-did-mount-set-state": ["error", "disallow-in-func"],
263
-
264
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-did-update-set-state.md
265
- // Disallow usage of setState in componentDidUpdate
266
- "react/no-did-update-set-state": ["error", "disallow-in-func"],
267
-
268
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-direct-mutation-state.md
269
- // Disallow direct mutation of this.state
270
- "react/no-direct-mutation-state": ["error"],
271
-
272
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-find-dom-node.md
273
- // Disallow usage of findDOMNode
274
- "react/no-find-dom-node": ["error"],
275
-
276
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-invalid-html-attribute.md
277
- // Disallow usage of invalid attributes
278
- "react/no-invalid-html-attribute": ["error"],
279
-
280
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-is-mounted.md
281
- // Disallow usage of isMounted
282
- "react/no-is-mounted": ["error"],
283
-
284
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-multi-comp.md
285
- // Disallow multiple component definition per file
286
- "react/no-multi-comp": ["off"],
287
-
288
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-namespace.md
289
- // Enforce that namespaces are not used in React elements
290
- "react/no-namespace": ["error"],
291
-
292
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-object-type-as-default-prop.md
293
- // Disallow usage of referential-type variables as default param in functional component
294
- "react/no-object-type-as-default-prop": ["error"],
295
-
296
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-redundant-should-component-update.md
297
- // Disallow usage of shouldComponentUpdate when extending React.PureComponent
298
- "react/no-redundant-should-component-update": ["error"],
299
-
300
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-render-return-value.md
301
- // Disallow usage of the return value of ReactDOM.render
302
- "react/no-render-return-value": ["error"],
303
-
304
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-set-state.md
305
- // Disallow usage of setState
306
- "react/no-set-state": ["error"],
307
-
308
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-string-refs.md
309
- // Disallow using string references
310
- "react/no-string-refs": ["error", { noTemplateLiterals: true }],
311
-
312
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-this-in-sfc.md
313
- // Disallow this from being used in stateless functional components
314
- "react/no-this-in-sfc": ["error"],
315
-
316
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-typos.md
317
- // Disallow common typos
318
- "react/no-typos": ["error"],
319
-
320
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unescaped-entities.md
321
- // Disallow unescaped HTML entities from appearing in markup
322
- "react/no-unescaped-entities": ["error"],
323
-
324
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unknown-property.md
325
- // Disallow usage of unknown DOM property
326
- "react/no-unknown-property": ["warn"],
327
-
328
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unsafe.md
329
- // Disallow usage of unsafe lifecycle methods
330
- // Disabled in recommended configs
331
- "react/no-unsafe": ["off"],
332
-
333
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unstable-nested-components.md
334
- // Disallow creating unstable components inside components
335
- "react/no-unstable-nested-components": ["error"],
336
-
337
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unused-class-component-methods.md
338
- // Disallow declaring unused methods of component class
339
- "react/no-unused-class-component-methods": ["error"],
340
-
341
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unused-prop-types.md
342
- // Disallow definitions of unused propTypes
343
- "react/no-unused-prop-types": ["error"],
344
-
345
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unused-state.md
346
- // Disallow definitions of unused state
347
- "react/no-unused-state": ["error"],
348
-
349
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-will-update-set-state.md
350
- // Disallow usage of setState in componentWillUpdate
351
- "react/no-will-update-set-state": ["error", "disallow-in-func"],
352
-
353
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prefer-es6-class.md
354
- // Enforce ES5 or ES6 class for React Components
355
- "react/prefer-es6-class": ["error"],
356
-
357
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prefer-exact-props.md
358
- // Prefer exact prop type definitions
359
- "react/prefer-exact-props": ["error"],
360
-
361
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prefer-read-only-props.md
362
- // Enforce that props are read-only
363
- "react/prefer-read-only-props": ["warn"],
364
-
365
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md
366
- // Enforce stateless components to be written as a pure function
367
- "react/prefer-stateless-function": ["error"],
368
-
369
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prop-types.md
370
- // Disallow missing props validation in a React component definition
371
- "react/prop-types": ["error"],
372
-
373
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md
374
- // Disallow missing React when using JSX
375
- // Disable this rule because react 17 doesn't need to import React to use JSX
376
- "react/react-in-jsx-scope": ["off"],
377
-
378
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/require-default-props.md
379
- // Enforce a defaultProps definition for every prop that is not a required prop
380
- "react/require-default-props": ["off"],
381
-
382
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/require-optimization.md
383
- // Enforce React components to have a shouldComponentUpdate method
384
- "react/require-optimization": ["error"],
385
-
386
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/require-render-return.md
387
- // Enforce ES5 or ES6 class for returning value in render function
388
- "react/require-render-return": ["error"],
389
-
390
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
391
- // Disallow extra closing tags for components without children
392
- "react/self-closing-comp": ["warn"],
393
-
394
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/sort-comp.md
395
- // Enforce component methods order
396
- "react/sort-comp": ["error"],
397
-
398
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/sort-default-props.md
399
- // Enforce defaultProps declarations alphabetical sorting
400
- "react/sort-default-props": ["off"],
401
-
402
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/sort-prop-types.md
403
- // Enforce propTypes declarations alphabetical sorting
404
- "react/sort-prop-types": ["off"],
405
-
406
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/state-in-constructor.md
407
- // Enforce class component state initialization style
408
- "react/state-in-constructor": ["error"],
409
-
410
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/static-property-placement.md
411
- // Enforces where React component static properties should be positioned.
412
- "react/static-property-placement": ["error"],
413
-
414
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/style-prop-object.md
415
- // Enforce style prop value is an object
416
- "react/style-prop-object": ["error"],
417
-
418
- // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/void-dom-elements-no-children.md
419
- // Disallow void DOM elements (e.g. <img />, <br />) from receiving children
420
- "react/void-dom-elements-no-children": ["error"]
421
- };
1
+ export default {
2
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/boolean-prop-naming.md
3
+ // Enforces consistent naming for boolean props
4
+ "react/boolean-prop-naming": ["error"],
5
+
6
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/button-has-type.md
7
+ // Disallow usage of button elements without an explicit type attribute
8
+ "react/button-has-type": ["error"],
9
+
10
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/checked-requires-onchange-or-readonly.md
11
+ // Enforce using onChange or readonly attribute when checked is used
12
+ "react/checked-requires-onchange-or-readonly": ["off"],
13
+
14
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/default-props-match-prop-types.md
15
+ // Enforce all defaultProps have a corresponding non-required PropType
16
+ "react/default-props-match-prop-types": ["error"],
17
+
18
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/destructuring-assignment.md
19
+ // Enforce consistent usage of destructuring assignment of props, state, and context
20
+ "react/destructuring-assignment": ["warn"],
21
+
22
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/display-name.md
23
+ // Disallow missing displayName in a React component definition
24
+ "react/display-name": ["error"],
25
+
26
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/forbid-component-props.md
27
+ // Disallow certain props on components
28
+ "react/forbid-component-props": ["off"],
29
+
30
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/forbid-dom-props.md
31
+ // Disallow certain props on DOM Nodes
32
+ "react/forbid-dom-props": ["off"],
33
+
34
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/forbid-elements.md
35
+ // Disallow certain elements
36
+ "react/forbid-elements": ["off"],
37
+
38
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/forbid-foreign-prop-types.md
39
+ // Disallow using another component's propTypes
40
+ "react/forbid-foreign-prop-types": ["error"],
41
+
42
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/forbid-prop-types.md
43
+ // Disallow certain propTypes
44
+ "react/forbid-prop-types": ["error"],
45
+
46
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/function-component-definition.md
47
+ // Enforce a specific function type for function components
48
+ "react/function-component-definition": ["warn"],
49
+
50
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/hook-use-state.md
51
+ // Ensure destructuring and symmetric naming of useState hook value and setter variables
52
+ "react/hook-use-state": ["error"],
53
+
54
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/iframe-missing-sandbox.md
55
+ // Enforce sandbox attribute on iframe elements
56
+ "react/iframe-missing-sandbox": ["error"],
57
+
58
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md
59
+ // Enforce boolean attributes notation in JSX
60
+ "react/jsx-boolean-value": ["warn", "always"],
61
+
62
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-child-element-spacing.md
63
+ // Enforce or disallow spaces inside curly braces in JSX attributes and expressions
64
+ "react/jsx-child-element-spacing": ["error"],
65
+
66
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-closing-bracket-location.md
67
+ // Enforce closing bracket location in JSX
68
+ // Use similar stylistic rule instead
69
+ "react/jsx-closing-bracket-location": ["off"],
70
+
71
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-closing-tag-location.md
72
+ // Enforce closing tag location for multiline JSX
73
+ // Use similar stylistic rule instead
74
+ "react/jsx-closing-tag-location": ["off"],
75
+
76
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-brace-presence.md
77
+ // Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
78
+ // Use similar stylistic rule instead
79
+ "react/jsx-curly-brace-presence": ["off"],
80
+
81
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-newline.md
82
+ // Enforce consistent linebreaks in curly braces in JSX attributes and expressions
83
+ // Use similar stylistic rule instead
84
+ "react/jsx-curly-newline": ["off"],
85
+
86
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md
87
+ // Enforce or disallow spaces inside curly braces in JSX attributes and expressions
88
+ // Use similar stylistic rule instead
89
+ "react/jsx-curly-spacing": ["off"],
90
+
91
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-equals-spacing.md
92
+ // Enforce or disallow spaces around equal signs in JSX attributes
93
+ // Use similar stylistic rule instead
94
+ "react/jsx-equals-spacing": ["off"],
95
+
96
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md
97
+ // Disallow file extensions that may contain JSX
98
+ "react/jsx-filename-extension": ["error", { allow: "always", extensions: [".tsx"] }],
99
+
100
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-first-prop-new-line.md
101
+ // Enforce proper position of the first property in JSX
102
+ // Use similar stylistic rule instead
103
+ "react/jsx-first-prop-new-line": ["off"],
104
+
105
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-fragments.md
106
+ // Enforce shorthand or standard form for React fragments
107
+ "react/jsx-fragments": ["warn"],
108
+
109
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-handler-names.md
110
+ // Enforce event handler naming conventions in JSX
111
+ "react/jsx-handler-names": ["error"],
112
+
113
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-indent.md
114
+ // Enforce JSX indentation
115
+ // Use similar stylistic rule instead
116
+ "react/jsx-indent": ["off"],
117
+
118
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-indent-props.md
119
+ // Enforce props indentation in JSX
120
+ // Use similar stylistic rule instead
121
+ "react/jsx-indent-props": ["off"],
122
+
123
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-key.md
124
+ // Disallow missing key props in iterators/collection literals
125
+ "react/jsx-key": ["error"],
126
+
127
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-max-depth.md
128
+ // Enforce JSX maximum depth
129
+ "react/jsx-max-depth": ["off"],
130
+
131
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-max-props-per-line.md
132
+ // Enforce maximum of props on a single line in JSX
133
+ // Use similar stylistic rule instead
134
+ "react/jsx-max-props-per-line": ["off"],
135
+
136
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-newline.md
137
+ // Require or prevent a new line after jsx elements and expressions
138
+ // Use similar stylistic rule instead
139
+ "react/jsx-newline": ["off"],
140
+
141
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-bind.md
142
+ // Disallow .bind() or arrow functions in JSX props
143
+ "react/jsx-no-bind": [
144
+ "error",
145
+ {
146
+ allowArrowFunctions: true
147
+ }
148
+ ],
149
+
150
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-comment-textnodes.md
151
+ // Disallow comments from being inserted as text nodes
152
+ "react/jsx-no-comment-textnodes": ["error"],
153
+
154
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-constructed-context-values.md
155
+ // Disallows JSX context provider values from taking values that will cause needless renders
156
+ "react/jsx-no-constructed-context-values": ["error"],
157
+
158
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-duplicate-props.md
159
+ // Disallow duplicate properties in JSX
160
+ "react/jsx-no-duplicate-props": ["error"],
161
+
162
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-leaked-render.md
163
+ // Disallow problematic leaked values from being rendered
164
+ "react/jsx-no-leaked-render": ["warn"],
165
+
166
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-literals.md
167
+ // Disallow usage of string literals in JSX
168
+ "react/jsx-no-literals": ["off"],
169
+
170
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-script-url.md
171
+ // Disallow usage of javascript: URLs
172
+ "react/jsx-no-script-url": ["error"],
173
+
174
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md
175
+ // Disallow target="_blank" attribute without rel="noreferrer"
176
+ "react/jsx-no-target-blank": ["warn"],
177
+
178
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-undef.md
179
+ // Disallow undeclared variables in JSX
180
+ "react/jsx-no-undef": ["error"],
181
+
182
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-useless-fragment.md
183
+ // Disallow unnecessary fragments
184
+ "react/jsx-no-useless-fragment": ["warn"],
185
+
186
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-one-expression-per-line.md
187
+ // Require one JSX element per line
188
+ // Use similar stylistic rule instead
189
+ "react/jsx-one-expression-per-line": ["off"],
190
+
191
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-pascal-case.md
192
+ // Enforce PascalCase for user-defined JSX components
193
+ // Use similar stylistic rule instead
194
+ "react/jsx-pascal-case": ["off"],
195
+
196
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-multi-spaces.md
197
+ // Disallow multiple spaces between inline JSX props
198
+ // Use similar stylistic rule instead
199
+ "react/jsx-props-no-multi-spaces": ["off"],
200
+
201
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-spread-multi.md
202
+ // Disallow multiple spaces between inline JSX props
203
+ "react/jsx-props-no-spread-multi": ["off"],
204
+
205
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-props-no-spreading.md
206
+ // Disallow JSX prop spreading
207
+ "react/jsx-props-no-spreading": ["off"],
208
+
209
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-sort-props.md
210
+ // Enforce props alphabetical sorting
211
+ // Use similar stylistic rule instead
212
+ "react/jsx-sort-props": ["off"],
213
+
214
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-tag-spacing.md
215
+ // Enforce whitespace in and around the JSX opening and closing brackets
216
+ // Use similar stylistic rule instead
217
+ "react/jsx-tag-spacing": ["off"],
218
+
219
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-uses-react.md
220
+ // Disallow React to be incorrectly marked as unused
221
+ "react/jsx-uses-react": ["error"],
222
+
223
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-uses-vars.md
224
+ // Disallow variables used in JSX to be incorrectly marked as unused
225
+ "react/jsx-uses-vars": ["error"],
226
+
227
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-wrap-multilines.md
228
+ // Disallow missing parentheses around multiline JSX
229
+ // Use similar stylistic rule instead
230
+ "react/jsx-wrap-multilines": ["off"],
231
+
232
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-access-state-in-setstate.md
233
+ // Disallow when this.state is accessed within setState
234
+ "react/no-access-state-in-setstate": ["error"],
235
+
236
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-adjacent-inline-elements.md
237
+ // Disallow adjacent inline elements not separated by whitespace.
238
+ "react/no-adjacent-inline-elements": ["error"],
239
+
240
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-array-index-key.md
241
+ // Disallow usage of Array index in keys
242
+ "react/no-array-index-key": ["error"],
243
+
244
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-arrow-function-lifecycle.md
245
+ // Lifecycle methods should be methods on the prototype, not class fields
246
+ "react/no-arrow-function-lifecycle": ["warn"],
247
+
248
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-children-prop.md
249
+ // Disallow passing of children as props
250
+ "react/no-children-prop": ["error"],
251
+
252
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-danger.md
253
+ // Disallow usage of dangerous JSX properties
254
+ "react/no-danger": ["error"],
255
+
256
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-danger-with-children.md
257
+ // Disallow when a DOM element is using both children and dangerouslySetInnerHTML
258
+ "react/no-danger-with-children": ["error"],
259
+
260
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-deprecated.md
261
+ // Disallow usage of deprecated methods
262
+ "react/no-deprecated": ["error"],
263
+
264
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-did-mount-set-state.md
265
+ // Disallow usage of setState in componentDidMount
266
+ "react/no-did-mount-set-state": ["error", "disallow-in-func"],
267
+
268
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-did-update-set-state.md
269
+ // Disallow usage of setState in componentDidUpdate
270
+ "react/no-did-update-set-state": ["error", "disallow-in-func"],
271
+
272
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-direct-mutation-state.md
273
+ // Disallow direct mutation of this.state
274
+ "react/no-direct-mutation-state": ["error"],
275
+
276
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-find-dom-node.md
277
+ // Disallow usage of findDOMNode
278
+ "react/no-find-dom-node": ["error"],
279
+
280
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-invalid-html-attribute.md
281
+ // Disallow usage of invalid attributes
282
+ "react/no-invalid-html-attribute": ["error"],
283
+
284
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-is-mounted.md
285
+ // Disallow usage of isMounted
286
+ "react/no-is-mounted": ["error"],
287
+
288
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-multi-comp.md
289
+ // Disallow multiple component definition per file
290
+ "react/no-multi-comp": ["off"],
291
+
292
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-namespace.md
293
+ // Enforce that namespaces are not used in React elements
294
+ "react/no-namespace": ["error"],
295
+
296
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-object-type-as-default-prop.md
297
+ // Disallow usage of referential-type variables as default param in functional component
298
+ "react/no-object-type-as-default-prop": ["error"],
299
+
300
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-redundant-should-component-update.md
301
+ // Disallow usage of shouldComponentUpdate when extending React.PureComponent
302
+ "react/no-redundant-should-component-update": ["error"],
303
+
304
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-render-return-value.md
305
+ // Disallow usage of the return value of ReactDOM.render
306
+ "react/no-render-return-value": ["error"],
307
+
308
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-set-state.md
309
+ // Disallow usage of setState
310
+ "react/no-set-state": ["error"],
311
+
312
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-string-refs.md
313
+ // Disallow using string references
314
+ "react/no-string-refs": ["error", { noTemplateLiterals: true }],
315
+
316
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-this-in-sfc.md
317
+ // Disallow this from being used in stateless functional components
318
+ "react/no-this-in-sfc": ["error"],
319
+
320
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-typos.md
321
+ // Disallow common typos
322
+ "react/no-typos": ["error"],
323
+
324
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unescaped-entities.md
325
+ // Disallow unescaped HTML entities from appearing in markup
326
+ "react/no-unescaped-entities": ["error"],
327
+
328
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unknown-property.md
329
+ // Disallow usage of unknown DOM property
330
+ "react/no-unknown-property": ["warn"],
331
+
332
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unsafe.md
333
+ // Disallow usage of unsafe lifecycle methods
334
+ // Disabled in recommended configs
335
+ "react/no-unsafe": ["off"],
336
+
337
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unstable-nested-components.md
338
+ // Disallow creating unstable components inside components
339
+ "react/no-unstable-nested-components": ["error"],
340
+
341
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unused-class-component-methods.md
342
+ // Disallow declaring unused methods of component class
343
+ "react/no-unused-class-component-methods": ["error"],
344
+
345
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unused-prop-types.md
346
+ // Disallow definitions of unused propTypes
347
+ "react/no-unused-prop-types": ["error"],
348
+
349
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-unused-state.md
350
+ // Disallow definitions of unused state
351
+ "react/no-unused-state": ["error"],
352
+
353
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/no-will-update-set-state.md
354
+ // Disallow usage of setState in componentWillUpdate
355
+ "react/no-will-update-set-state": ["error", "disallow-in-func"],
356
+
357
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prefer-es6-class.md
358
+ // Enforce ES5 or ES6 class for React Components
359
+ "react/prefer-es6-class": ["error"],
360
+
361
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prefer-exact-props.md
362
+ // Prefer exact prop type definitions
363
+ "react/prefer-exact-props": ["error"],
364
+
365
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prefer-read-only-props.md
366
+ // Enforce that props are read-only
367
+ "react/prefer-read-only-props": ["warn"],
368
+
369
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md
370
+ // Enforce stateless components to be written as a pure function
371
+ "react/prefer-stateless-function": ["error"],
372
+
373
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/prop-types.md
374
+ // Disallow missing props validation in a React component definition
375
+ "react/prop-types": ["error"],
376
+
377
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/react-in-jsx-scope.md
378
+ // Disallow missing React when using JSX
379
+ // Disable this rule because react 17 doesn't need to import React to use JSX
380
+ "react/react-in-jsx-scope": ["off"],
381
+
382
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/require-default-props.md
383
+ // Enforce a defaultProps definition for every prop that is not a required prop
384
+ "react/require-default-props": ["off"],
385
+
386
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/require-optimization.md
387
+ // Enforce React components to have a shouldComponentUpdate method
388
+ "react/require-optimization": ["error"],
389
+
390
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/require-render-return.md
391
+ // Enforce ES5 or ES6 class for returning value in render function
392
+ "react/require-render-return": ["error"],
393
+
394
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
395
+ // Disallow extra closing tags for components without children
396
+ "react/self-closing-comp": ["warn"],
397
+
398
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/sort-comp.md
399
+ // Enforce component methods order
400
+ "react/sort-comp": ["error"],
401
+
402
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/sort-default-props.md
403
+ // Enforce defaultProps declarations alphabetical sorting
404
+ "react/sort-default-props": ["off"],
405
+
406
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/sort-prop-types.md
407
+ // Enforce propTypes declarations alphabetical sorting
408
+ "react/sort-prop-types": ["off"],
409
+
410
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/state-in-constructor.md
411
+ // Enforce class component state initialization style
412
+ "react/state-in-constructor": ["error"],
413
+
414
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/static-property-placement.md
415
+ // Enforces where React component static properties should be positioned.
416
+ "react/static-property-placement": ["error"],
417
+
418
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/style-prop-object.md
419
+ // Enforce style prop value is an object
420
+ "react/style-prop-object": ["error"],
421
+
422
+ // https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/void-dom-elements-no-children.md
423
+ // Disallow void DOM elements (e.g. <img />, <br />) from receiving children
424
+ "react/void-dom-elements-no-children": ["error"]
425
+ };