3
3
exports [` eslintPlugin > should initialize ESLint plugin 1` ] = `
4
4
{
5
5
" audits" : [
6
- {
7
- " description" : " ESLint rule **arrow-body-style**." ,
8
- " docsUrl" : " https://eslint.org/docs/latest/rules/arrow-body-style" ,
9
- " slug" : " arrow-body-style" ,
10
- " title" : " Require braces around arrow function bodies" ,
11
- },
12
- {
13
- " description" : " ESLint rule **camelcase**." ,
14
- " docsUrl" : " https://eslint.org/docs/latest/rules/camelcase" ,
15
- " slug" : " camelcase" ,
16
- " title" : " Enforce camelcase naming convention" ,
17
- },
18
- {
19
- " description" : " ESLint rule **curly**." ,
20
- " docsUrl" : " https://eslint.org/docs/latest/rules/curly" ,
21
- " slug" : " curly" ,
22
- " title" : " Enforce consistent brace style for all control statements" ,
23
- },
24
- {
25
- " description" : " ESLint rule **eqeqeq**." ,
26
- " docsUrl" : " https://eslint.org/docs/latest/rules/eqeqeq" ,
27
- " slug" : " eqeqeq" ,
28
- " title" : " Require the use of \` ===\` and \` !==\` " ,
29
- },
30
- {
31
- " description" : " ESLint rule **max-lines**." ,
32
- " docsUrl" : " https://eslint.org/docs/latest/rules/max-lines" ,
33
- " slug" : " max-lines" ,
34
- " title" : " Enforce a maximum number of lines per file" ,
35
- },
36
- {
37
- " description" : " ESLint rule **max-lines-per-function**." ,
38
- " docsUrl" : " https://eslint.org/docs/latest/rules/max-lines-per-function" ,
39
- " slug" : " max-lines-per-function" ,
40
- " title" : " Enforce a maximum number of lines of code in a function" ,
41
- },
42
6
{
43
7
" description" : " ESLint rule **no-cond-assign**." ,
44
8
" docsUrl" : " https://eslint.org/docs/latest/rules/no-cond-assign" ,
@@ -63,12 +27,6 @@ exports[`eslintPlugin > should initialize ESLint plugin 1`] = `
63
27
" slug" : " no-invalid-regexp" ,
64
28
" title" : " Disallow invalid regular expression strings in \` RegExp\` constructors" ,
65
29
},
66
- {
67
- " description" : " ESLint rule **no-shadow**." ,
68
- " docsUrl" : " https://eslint.org/docs/latest/rules/no-shadow" ,
69
- " slug" : " no-shadow" ,
70
- " title" : " Disallow variable declarations from shadowing variables declared in the outer scope" ,
71
- },
72
30
{
73
31
" description" : " ESLint rule **no-undef**." ,
74
32
" docsUrl" : " https://eslint.org/docs/latest/rules/no-undef" ,
@@ -99,6 +57,60 @@ exports[`eslintPlugin > should initialize ESLint plugin 1`] = `
99
57
" slug" : " no-unused-vars" ,
100
58
" title" : " Disallow unused variables" ,
101
59
},
60
+ {
61
+ " description" : " ESLint rule **use-isnan**." ,
62
+ " docsUrl" : " https://eslint.org/docs/latest/rules/use-isnan" ,
63
+ " slug" : " use-isnan" ,
64
+ " title" : " Require calls to \` isNaN()\` when checking for \` NaN\` " ,
65
+ },
66
+ {
67
+ " description" : " ESLint rule **valid-typeof**." ,
68
+ " docsUrl" : " https://eslint.org/docs/latest/rules/valid-typeof" ,
69
+ " slug" : " valid-typeof" ,
70
+ " title" : " Enforce comparing \` typeof\` expressions against valid strings" ,
71
+ },
72
+ {
73
+ " description" : " ESLint rule **arrow-body-style**." ,
74
+ " docsUrl" : " https://eslint.org/docs/latest/rules/arrow-body-style" ,
75
+ " slug" : " arrow-body-style" ,
76
+ " title" : " Require braces around arrow function bodies" ,
77
+ },
78
+ {
79
+ " description" : " ESLint rule **camelcase**." ,
80
+ " docsUrl" : " https://eslint.org/docs/latest/rules/camelcase" ,
81
+ " slug" : " camelcase" ,
82
+ " title" : " Enforce camelcase naming convention" ,
83
+ },
84
+ {
85
+ " description" : " ESLint rule **curly**." ,
86
+ " docsUrl" : " https://eslint.org/docs/latest/rules/curly" ,
87
+ " slug" : " curly" ,
88
+ " title" : " Enforce consistent brace style for all control statements" ,
89
+ },
90
+ {
91
+ " description" : " ESLint rule **eqeqeq**." ,
92
+ " docsUrl" : " https://eslint.org/docs/latest/rules/eqeqeq" ,
93
+ " slug" : " eqeqeq" ,
94
+ " title" : " Require the use of \` ===\` and \` !==\` " ,
95
+ },
96
+ {
97
+ " description" : " ESLint rule **max-lines-per-function**." ,
98
+ " docsUrl" : " https://eslint.org/docs/latest/rules/max-lines-per-function" ,
99
+ " slug" : " max-lines-per-function" ,
100
+ " title" : " Enforce a maximum number of lines of code in a function" ,
101
+ },
102
+ {
103
+ " description" : " ESLint rule **max-lines**." ,
104
+ " docsUrl" : " https://eslint.org/docs/latest/rules/max-lines" ,
105
+ " slug" : " max-lines" ,
106
+ " title" : " Enforce a maximum number of lines per file" ,
107
+ },
108
+ {
109
+ " description" : " ESLint rule **no-shadow**." ,
110
+ " docsUrl" : " https://eslint.org/docs/latest/rules/no-shadow" ,
111
+ " slug" : " no-shadow" ,
112
+ " title" : " Disallow variable declarations from shadowing variables declared in the outer scope" ,
113
+ },
102
114
{
103
115
" description" : " ESLint rule **no-var**." ,
104
116
" docsUrl" : " https://eslint.org/docs/latest/rules/no-var" ,
@@ -129,36 +141,48 @@ exports[`eslintPlugin > should initialize ESLint plugin 1`] = `
129
141
" slug" : " prefer-object-spread" ,
130
142
" title" : " Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead" ,
131
143
},
132
- {
133
- " description" : " ESLint rule **use-isnan**." ,
134
- " docsUrl" : " https://eslint.org/docs/latest/rules/use-isnan" ,
135
- " slug" : " use-isnan" ,
136
- " title" : " Require calls to \` isNaN()\` when checking for \` NaN\` " ,
137
- },
138
- {
139
- " description" : " ESLint rule **valid-typeof**." ,
140
- " docsUrl" : " https://eslint.org/docs/latest/rules/valid-typeof" ,
141
- " slug" : " valid-typeof" ,
142
- " title" : " Enforce comparing \` typeof\` expressions against valid strings" ,
143
- },
144
144
{
145
145
" description" : " ESLint rule **yoda**." ,
146
146
" docsUrl" : " https://eslint.org/docs/latest/rules/yoda" ,
147
147
" slug" : " yoda" ,
148
148
" title" : " Require or disallow \\ " Yoda \\" conditions" ,
149
149
},
150
- {
151
- " description" : " ESLint rule **display-name**, from _react_ plugin." ,
152
- " docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/display-name.md" ,
153
- " slug" : " react-display-name" ,
154
- " title" : " Disallow missing displayName in a React component definition" ,
155
- },
156
150
{
157
151
" description" : " ESLint rule **jsx-key**, from _react_ plugin." ,
158
152
" docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-key.md" ,
159
153
" slug" : " react-jsx-key" ,
160
154
" title" : " Disallow missing \` key\` props in iterators/collection literals" ,
161
155
},
156
+ {
157
+ " description" : " ESLint rule **prop-types**, from _react_ plugin." ,
158
+ " docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prop-types.md" ,
159
+ " slug" : " react-prop-types" ,
160
+ " title" : " Disallow missing props validation in a React component definition" ,
161
+ },
162
+ {
163
+ " description" : " ESLint rule **react-in-jsx-scope**, from _react_ plugin." ,
164
+ " docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/react-in-jsx-scope.md" ,
165
+ " slug" : " react-react-in-jsx-scope" ,
166
+ " title" : " Disallow missing React when using JSX" ,
167
+ },
168
+ {
169
+ " description" : " ESLint rule **rules-of-hooks**, from _react-hooks_ plugin." ,
170
+ " docsUrl" : " https://reactjs.org/docs/hooks-rules.html" ,
171
+ " slug" : " react-hooks-rules-of-hooks" ,
172
+ " title" : " enforces the Rules of Hooks" ,
173
+ },
174
+ {
175
+ " description" : " ESLint rule **exhaustive-deps**, from _react-hooks_ plugin." ,
176
+ " docsUrl" : " https://github.com/facebook/react/issues/14920" ,
177
+ " slug" : " react-hooks-exhaustive-deps" ,
178
+ " title" : " verifies the list of dependencies for Hooks like useEffect and similar" ,
179
+ },
180
+ {
181
+ " description" : " ESLint rule **display-name**, from _react_ plugin." ,
182
+ " docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/display-name.md" ,
183
+ " slug" : " react-display-name" ,
184
+ " title" : " Disallow missing displayName in a React component definition" ,
185
+ },
162
186
{
163
187
" description" : " ESLint rule **jsx-no-comment-textnodes**, from _react_ plugin." ,
164
188
" docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-comment-textnodes.md" ,
@@ -231,18 +255,18 @@ exports[`eslintPlugin > should initialize ESLint plugin 1`] = `
231
255
" slug" : " react-no-is-mounted" ,
232
256
" title" : " Disallow usage of isMounted" ,
233
257
},
234
- {
235
- " description" : " ESLint rule **no-string-refs**, from _react_ plugin." ,
236
- " docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-string-refs.md" ,
237
- " slug" : " react-no-string-refs" ,
238
- " title" : " Disallow using string references" ,
239
- },
240
258
{
241
259
" description" : " ESLint rule **no-render-return-value**, from _react_ plugin." ,
242
260
" docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-render-return-value.md" ,
243
261
" slug" : " react-no-render-return-value" ,
244
262
" title" : " Disallow usage of the return value of ReactDOM.render" ,
245
263
},
264
+ {
265
+ " description" : " ESLint rule **no-string-refs**, from _react_ plugin." ,
266
+ " docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-string-refs.md" ,
267
+ " slug" : " react-no-string-refs" ,
268
+ " title" : " Disallow using string references" ,
269
+ },
246
270
{
247
271
" description" : " ESLint rule **no-unescaped-entities**, from _react_ plugin." ,
248
272
" docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-unescaped-entities.md" ,
@@ -261,36 +285,12 @@ exports[`eslintPlugin > should initialize ESLint plugin 1`] = `
261
285
" slug" : " react-no-unsafe" ,
262
286
" title" : " Disallow usage of unsafe lifecycle methods" ,
263
287
},
264
- {
265
- " description" : " ESLint rule **prop-types**, from _react_ plugin." ,
266
- " docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/prop-types.md" ,
267
- " slug" : " react-prop-types" ,
268
- " title" : " Disallow missing props validation in a React component definition" ,
269
- },
270
- {
271
- " description" : " ESLint rule **react-in-jsx-scope**, from _react_ plugin." ,
272
- " docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/react-in-jsx-scope.md" ,
273
- " slug" : " react-react-in-jsx-scope" ,
274
- " title" : " Disallow missing React when using JSX" ,
275
- },
276
288
{
277
289
" description" : " ESLint rule **require-render-return**, from _react_ plugin." ,
278
290
" docsUrl" : " https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/require-render-return.md" ,
279
291
" slug" : " react-require-render-return" ,
280
292
" title" : " Enforce ES5 or ES6 class for returning value in render function" ,
281
293
},
282
- {
283
- " description" : " ESLint rule **rules-of-hooks**, from _react-hooks_ plugin." ,
284
- " docsUrl" : " https://reactjs.org/docs/hooks-rules.html" ,
285
- " slug" : " react-hooks-rules-of-hooks" ,
286
- " title" : " enforces the Rules of Hooks" ,
287
- },
288
- {
289
- " description" : " ESLint rule **exhaustive-deps**, from _react-hooks_ plugin." ,
290
- " docsUrl" : " https://github.com/facebook/react/issues/14920" ,
291
- " slug" : " react-hooks-exhaustive-deps" ,
292
- " title" : " verifies the list of dependencies for Hooks like useEffect and similar" ,
293
- },
294
294
],
295
295
" description" : " Official Code PushUp ESLint plugin" ,
296
296
" icon" : " eslint" ,
0 commit comments