@eslint-react/eslint-plugin 2.0.6-next.0 → 2.0.6
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.
- package/dist/index.d.ts +150 -71
- package/dist/index.js +30 -6
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _eslint_react_kit0 from "@eslint-react/kit";
|
|
2
2
|
import { RuleConfig } from "@eslint-react/kit";
|
|
3
3
|
|
|
4
4
|
//#region src/configs/all.d.ts
|
|
@@ -34,8 +34,10 @@ declare const rules$12: {
|
|
|
34
34
|
readonly "@eslint-react/no-default-props": "error";
|
|
35
35
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
36
36
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
37
|
+
readonly "@eslint-react/no-forbidden-props": "off";
|
|
37
38
|
readonly "@eslint-react/no-forward-ref": "warn";
|
|
38
39
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
40
|
+
readonly "@eslint-react/no-leaked-conditional-rendering": "off";
|
|
39
41
|
readonly "@eslint-react/no-missing-component-display-name": "warn";
|
|
40
42
|
readonly "@eslint-react/no-missing-context-display-name": "warn";
|
|
41
43
|
readonly "@eslint-react/no-missing-key": "error";
|
|
@@ -58,15 +60,15 @@ declare const rules$12: {
|
|
|
58
60
|
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
59
61
|
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
60
62
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
63
|
+
readonly "@eslint-react/no-unused-props": "off";
|
|
61
64
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
62
65
|
readonly "@eslint-react/no-use-context": "warn";
|
|
63
66
|
readonly "@eslint-react/no-useless-forward-ref": "warn";
|
|
64
67
|
readonly "@eslint-react/no-useless-fragment": "warn";
|
|
65
68
|
readonly "@eslint-react/prefer-destructuring-assignment": "warn";
|
|
66
69
|
readonly "@eslint-react/prefer-namespace-import": "warn";
|
|
70
|
+
readonly "@eslint-react/prefer-read-only-props": "off";
|
|
67
71
|
readonly "@eslint-react/prefer-use-state-lazy-initialization": "warn";
|
|
68
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
69
|
-
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn";
|
|
70
72
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
71
73
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
72
74
|
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
@@ -78,19 +80,22 @@ declare const rules$12: {
|
|
|
78
80
|
readonly "@eslint-react/dom/no-render": "error";
|
|
79
81
|
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
80
82
|
readonly "@eslint-react/dom/no-script-url": "warn";
|
|
83
|
+
readonly "@eslint-react/dom/no-string-style-prop": "error";
|
|
81
84
|
readonly "@eslint-react/dom/no-unknown-property": "warn";
|
|
82
85
|
readonly "@eslint-react/dom/no-unsafe-iframe-sandbox": "warn";
|
|
83
86
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
84
|
-
readonly "@eslint-react/dom/no-use-form-state": "
|
|
87
|
+
readonly "@eslint-react/dom/no-use-form-state": "warn";
|
|
85
88
|
readonly "@eslint-react/dom/no-void-elements-with-children": "error";
|
|
89
|
+
readonly "@eslint-react/dom/prefer-namespace-import": "warn";
|
|
86
90
|
readonly "@eslint-react/web-api/no-leaked-event-listener": "warn";
|
|
87
91
|
readonly "@eslint-react/web-api/no-leaked-interval": "warn";
|
|
88
92
|
readonly "@eslint-react/web-api/no-leaked-resize-observer": "warn";
|
|
89
93
|
readonly "@eslint-react/web-api/no-leaked-timeout": "warn";
|
|
94
|
+
readonly "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn";
|
|
90
95
|
readonly "@eslint-react/naming-convention/component-name": "warn";
|
|
91
96
|
readonly "@eslint-react/naming-convention/context-name": "warn";
|
|
92
|
-
readonly "@eslint-react/naming-convention/filename": "
|
|
93
|
-
readonly "@eslint-react/naming-convention/filename-extension": "
|
|
97
|
+
readonly "@eslint-react/naming-convention/filename": "off";
|
|
98
|
+
readonly "@eslint-react/naming-convention/filename-extension": "off";
|
|
94
99
|
readonly "@eslint-react/naming-convention/use-state": "warn";
|
|
95
100
|
};
|
|
96
101
|
declare const plugins$6: {
|
|
@@ -100,14 +105,14 @@ declare const plugins$6: {
|
|
|
100
105
|
plugins: {};
|
|
101
106
|
name?: string;
|
|
102
107
|
rules?: Record<string, RuleConfig>;
|
|
103
|
-
settings?:
|
|
108
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
104
109
|
};
|
|
105
110
|
};
|
|
106
111
|
meta: {
|
|
107
112
|
name: string;
|
|
108
113
|
version: string;
|
|
109
114
|
};
|
|
110
|
-
rules: Record<string,
|
|
115
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
111
116
|
};
|
|
112
117
|
"@eslint-react/hooks-extra": {
|
|
113
118
|
configs: {
|
|
@@ -115,14 +120,14 @@ declare const plugins$6: {
|
|
|
115
120
|
plugins: {};
|
|
116
121
|
name?: string;
|
|
117
122
|
rules?: Record<string, RuleConfig>;
|
|
118
|
-
settings?:
|
|
123
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
119
124
|
};
|
|
120
125
|
};
|
|
121
126
|
meta: {
|
|
122
127
|
name: string;
|
|
123
128
|
version: string;
|
|
124
129
|
};
|
|
125
|
-
rules: Record<string,
|
|
130
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
126
131
|
};
|
|
127
132
|
"@eslint-react/naming-convention": {
|
|
128
133
|
configs: {
|
|
@@ -130,14 +135,14 @@ declare const plugins$6: {
|
|
|
130
135
|
plugins: {};
|
|
131
136
|
name?: string;
|
|
132
137
|
rules?: Record<string, RuleConfig>;
|
|
133
|
-
settings?:
|
|
138
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
134
139
|
};
|
|
135
140
|
};
|
|
136
141
|
meta: {
|
|
137
142
|
name: string;
|
|
138
143
|
version: string;
|
|
139
144
|
};
|
|
140
|
-
rules: Record<string,
|
|
145
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
141
146
|
};
|
|
142
147
|
"@eslint-react/web-api": {
|
|
143
148
|
configs: {
|
|
@@ -145,14 +150,14 @@ declare const plugins$6: {
|
|
|
145
150
|
plugins: {};
|
|
146
151
|
name?: string;
|
|
147
152
|
rules?: Record<string, RuleConfig>;
|
|
148
|
-
settings?:
|
|
153
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
149
154
|
};
|
|
150
155
|
};
|
|
151
156
|
meta: {
|
|
152
157
|
name: string;
|
|
153
158
|
version: string;
|
|
154
159
|
};
|
|
155
|
-
rules: Record<string,
|
|
160
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
156
161
|
};
|
|
157
162
|
"@eslint-react/dom": {
|
|
158
163
|
configs: {
|
|
@@ -160,14 +165,14 @@ declare const plugins$6: {
|
|
|
160
165
|
plugins: {};
|
|
161
166
|
name?: string;
|
|
162
167
|
rules?: Record<string, RuleConfig>;
|
|
163
|
-
settings?:
|
|
168
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
164
169
|
};
|
|
165
170
|
};
|
|
166
171
|
meta: {
|
|
167
172
|
name: string;
|
|
168
173
|
version: string;
|
|
169
174
|
};
|
|
170
|
-
rules: Record<string,
|
|
175
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
171
176
|
};
|
|
172
177
|
"@eslint-react": {
|
|
173
178
|
configs: {
|
|
@@ -175,26 +180,26 @@ declare const plugins$6: {
|
|
|
175
180
|
plugins: {};
|
|
176
181
|
name?: string;
|
|
177
182
|
rules?: Record<string, RuleConfig>;
|
|
178
|
-
settings?:
|
|
183
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
179
184
|
};
|
|
180
185
|
"recommended-type-checked": {
|
|
181
186
|
plugins: {};
|
|
182
187
|
name?: string;
|
|
183
188
|
rules?: Record<string, RuleConfig>;
|
|
184
|
-
settings?:
|
|
189
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
185
190
|
};
|
|
186
191
|
"recommended-typescript": {
|
|
187
192
|
plugins: {};
|
|
188
193
|
name?: string;
|
|
189
194
|
rules?: Record<string, RuleConfig>;
|
|
190
|
-
settings?:
|
|
195
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
191
196
|
};
|
|
192
197
|
};
|
|
193
198
|
meta: {
|
|
194
199
|
name: string;
|
|
195
200
|
version: string;
|
|
196
201
|
};
|
|
197
|
-
rules: Record<string,
|
|
202
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
198
203
|
};
|
|
199
204
|
};
|
|
200
205
|
declare const settings$5: {
|
|
@@ -222,14 +227,14 @@ declare const plugins$5: {
|
|
|
222
227
|
plugins: {};
|
|
223
228
|
name?: string;
|
|
224
229
|
rules?: Record<string, RuleConfig>;
|
|
225
|
-
settings?:
|
|
230
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
226
231
|
};
|
|
227
232
|
};
|
|
228
233
|
meta: {
|
|
229
234
|
name: string;
|
|
230
235
|
version: string;
|
|
231
236
|
};
|
|
232
|
-
rules: Record<string,
|
|
237
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
233
238
|
};
|
|
234
239
|
};
|
|
235
240
|
declare namespace disable_conflict_eslint_plugin_react_d_exports {
|
|
@@ -285,14 +290,14 @@ declare const plugins$4: {
|
|
|
285
290
|
plugins: {};
|
|
286
291
|
name?: string;
|
|
287
292
|
rules?: Record<string, RuleConfig>;
|
|
288
|
-
settings?:
|
|
293
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
289
294
|
};
|
|
290
295
|
};
|
|
291
296
|
meta: {
|
|
292
297
|
name: string;
|
|
293
298
|
version: string;
|
|
294
299
|
};
|
|
295
|
-
rules: Record<string,
|
|
300
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
296
301
|
};
|
|
297
302
|
};
|
|
298
303
|
declare const settings$4: {
|
|
@@ -336,6 +341,10 @@ declare const rules$3: {
|
|
|
336
341
|
readonly "@eslint-react/dom/no-void-elements-with-children": "error";
|
|
337
342
|
readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
|
|
338
343
|
readonly "@eslint-react/jsx-no-duplicate-props": "warn";
|
|
344
|
+
readonly "@eslint-react/jsx-no-iife": "off";
|
|
345
|
+
readonly "@eslint-react/jsx-no-undef": "off";
|
|
346
|
+
readonly "@eslint-react/jsx-shorthand-boolean": "off";
|
|
347
|
+
readonly "@eslint-react/jsx-shorthand-fragment": "off";
|
|
339
348
|
readonly "@eslint-react/jsx-uses-react": "warn";
|
|
340
349
|
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
341
350
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
@@ -344,7 +353,9 @@ declare const rules$3: {
|
|
|
344
353
|
readonly "@eslint-react/no-children-for-each": "warn";
|
|
345
354
|
readonly "@eslint-react/no-children-map": "warn";
|
|
346
355
|
readonly "@eslint-react/no-children-only": "warn";
|
|
356
|
+
readonly "@eslint-react/no-children-prop": "off";
|
|
347
357
|
readonly "@eslint-react/no-children-to-array": "warn";
|
|
358
|
+
readonly "@eslint-react/no-class-component": "off";
|
|
348
359
|
readonly "@eslint-react/no-clone-element": "warn";
|
|
349
360
|
readonly "@eslint-react/no-component-will-mount": "error";
|
|
350
361
|
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
@@ -354,9 +365,14 @@ declare const rules$3: {
|
|
|
354
365
|
readonly "@eslint-react/no-default-props": "error";
|
|
355
366
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
356
367
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
368
|
+
readonly "@eslint-react/no-forbidden-props": "off";
|
|
357
369
|
readonly "@eslint-react/no-forward-ref": "warn";
|
|
358
370
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
371
|
+
readonly "@eslint-react/no-leaked-conditional-rendering": "off";
|
|
372
|
+
readonly "@eslint-react/no-missing-component-display-name": "off";
|
|
373
|
+
readonly "@eslint-react/no-missing-context-display-name": "off";
|
|
359
374
|
readonly "@eslint-react/no-missing-key": "error";
|
|
375
|
+
readonly "@eslint-react/no-misused-capture-owner-stack": "off";
|
|
360
376
|
readonly "@eslint-react/no-nested-component-definitions": "error";
|
|
361
377
|
readonly "@eslint-react/no-nested-lazy-component-declarations": "error";
|
|
362
378
|
readonly "@eslint-react/no-prop-types": "error";
|
|
@@ -365,6 +381,9 @@ declare const rules$3: {
|
|
|
365
381
|
readonly "@eslint-react/no-set-state-in-component-did-update": "warn";
|
|
366
382
|
readonly "@eslint-react/no-set-state-in-component-will-update": "warn";
|
|
367
383
|
readonly "@eslint-react/no-string-refs": "error";
|
|
384
|
+
readonly "@eslint-react/no-unnecessary-key": "off";
|
|
385
|
+
readonly "@eslint-react/no-unnecessary-use-callback": "off";
|
|
386
|
+
readonly "@eslint-react/no-unnecessary-use-memo": "off";
|
|
368
387
|
readonly "@eslint-react/no-unnecessary-use-prefix": "warn";
|
|
369
388
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
370
389
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
@@ -372,9 +391,14 @@ declare const rules$3: {
|
|
|
372
391
|
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
373
392
|
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
374
393
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
394
|
+
readonly "@eslint-react/no-unused-props": "off";
|
|
375
395
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
376
396
|
readonly "@eslint-react/no-use-context": "warn";
|
|
377
397
|
readonly "@eslint-react/no-useless-forward-ref": "warn";
|
|
398
|
+
readonly "@eslint-react/no-useless-fragment": "off";
|
|
399
|
+
readonly "@eslint-react/prefer-destructuring-assignment": "off";
|
|
400
|
+
readonly "@eslint-react/prefer-namespace-import": "off";
|
|
401
|
+
readonly "@eslint-react/prefer-read-only-props": "off";
|
|
378
402
|
readonly "@eslint-react/prefer-use-state-lazy-initialization": "warn";
|
|
379
403
|
};
|
|
380
404
|
declare const plugins$3: {
|
|
@@ -384,14 +408,14 @@ declare const plugins$3: {
|
|
|
384
408
|
plugins: {};
|
|
385
409
|
name?: string;
|
|
386
410
|
rules?: Record<string, RuleConfig>;
|
|
387
|
-
settings?:
|
|
411
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
388
412
|
};
|
|
389
413
|
};
|
|
390
414
|
meta: {
|
|
391
415
|
name: string;
|
|
392
416
|
version: string;
|
|
393
417
|
};
|
|
394
|
-
rules: Record<string,
|
|
418
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
395
419
|
};
|
|
396
420
|
"@eslint-react/hooks-extra": {
|
|
397
421
|
configs: {
|
|
@@ -399,14 +423,14 @@ declare const plugins$3: {
|
|
|
399
423
|
plugins: {};
|
|
400
424
|
name?: string;
|
|
401
425
|
rules?: Record<string, RuleConfig>;
|
|
402
|
-
settings?:
|
|
426
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
403
427
|
};
|
|
404
428
|
};
|
|
405
429
|
meta: {
|
|
406
430
|
name: string;
|
|
407
431
|
version: string;
|
|
408
432
|
};
|
|
409
|
-
rules: Record<string,
|
|
433
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
410
434
|
};
|
|
411
435
|
"@eslint-react/naming-convention": {
|
|
412
436
|
configs: {
|
|
@@ -414,14 +438,14 @@ declare const plugins$3: {
|
|
|
414
438
|
plugins: {};
|
|
415
439
|
name?: string;
|
|
416
440
|
rules?: Record<string, RuleConfig>;
|
|
417
|
-
settings?:
|
|
441
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
418
442
|
};
|
|
419
443
|
};
|
|
420
444
|
meta: {
|
|
421
445
|
name: string;
|
|
422
446
|
version: string;
|
|
423
447
|
};
|
|
424
|
-
rules: Record<string,
|
|
448
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
425
449
|
};
|
|
426
450
|
"@eslint-react/web-api": {
|
|
427
451
|
configs: {
|
|
@@ -429,14 +453,14 @@ declare const plugins$3: {
|
|
|
429
453
|
plugins: {};
|
|
430
454
|
name?: string;
|
|
431
455
|
rules?: Record<string, RuleConfig>;
|
|
432
|
-
settings?:
|
|
456
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
433
457
|
};
|
|
434
458
|
};
|
|
435
459
|
meta: {
|
|
436
460
|
name: string;
|
|
437
461
|
version: string;
|
|
438
462
|
};
|
|
439
|
-
rules: Record<string,
|
|
463
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
440
464
|
};
|
|
441
465
|
"@eslint-react/dom": {
|
|
442
466
|
configs: {
|
|
@@ -444,14 +468,14 @@ declare const plugins$3: {
|
|
|
444
468
|
plugins: {};
|
|
445
469
|
name?: string;
|
|
446
470
|
rules?: Record<string, RuleConfig>;
|
|
447
|
-
settings?:
|
|
471
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
448
472
|
};
|
|
449
473
|
};
|
|
450
474
|
meta: {
|
|
451
475
|
name: string;
|
|
452
476
|
version: string;
|
|
453
477
|
};
|
|
454
|
-
rules: Record<string,
|
|
478
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
455
479
|
};
|
|
456
480
|
"@eslint-react": {
|
|
457
481
|
configs: {
|
|
@@ -459,26 +483,26 @@ declare const plugins$3: {
|
|
|
459
483
|
plugins: {};
|
|
460
484
|
name?: string;
|
|
461
485
|
rules?: Record<string, RuleConfig>;
|
|
462
|
-
settings?:
|
|
486
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
463
487
|
};
|
|
464
488
|
"recommended-type-checked": {
|
|
465
489
|
plugins: {};
|
|
466
490
|
name?: string;
|
|
467
491
|
rules?: Record<string, RuleConfig>;
|
|
468
|
-
settings?:
|
|
492
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
469
493
|
};
|
|
470
494
|
"recommended-typescript": {
|
|
471
495
|
plugins: {};
|
|
472
496
|
name?: string;
|
|
473
497
|
rules?: Record<string, RuleConfig>;
|
|
474
|
-
settings?:
|
|
498
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
475
499
|
};
|
|
476
500
|
};
|
|
477
501
|
meta: {
|
|
478
502
|
name: string;
|
|
479
503
|
version: string;
|
|
480
504
|
};
|
|
481
|
-
rules: Record<string,
|
|
505
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
482
506
|
};
|
|
483
507
|
};
|
|
484
508
|
declare const settings$3: {
|
|
@@ -523,13 +547,19 @@ declare const rules$2: {
|
|
|
523
547
|
readonly "@eslint-react/dom/no-use-form-state": "error";
|
|
524
548
|
readonly "@eslint-react/dom/no-void-elements-with-children": "error";
|
|
525
549
|
readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
|
|
550
|
+
readonly "@eslint-react/jsx-no-iife": "off";
|
|
551
|
+
readonly "@eslint-react/jsx-no-undef": "off";
|
|
552
|
+
readonly "@eslint-react/jsx-shorthand-boolean": "off";
|
|
553
|
+
readonly "@eslint-react/jsx-shorthand-fragment": "off";
|
|
526
554
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
527
555
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
528
556
|
readonly "@eslint-react/no-children-count": "warn";
|
|
529
557
|
readonly "@eslint-react/no-children-for-each": "warn";
|
|
530
558
|
readonly "@eslint-react/no-children-map": "warn";
|
|
531
559
|
readonly "@eslint-react/no-children-only": "warn";
|
|
560
|
+
readonly "@eslint-react/no-children-prop": "off";
|
|
532
561
|
readonly "@eslint-react/no-children-to-array": "warn";
|
|
562
|
+
readonly "@eslint-react/no-class-component": "off";
|
|
533
563
|
readonly "@eslint-react/no-clone-element": "warn";
|
|
534
564
|
readonly "@eslint-react/no-component-will-mount": "error";
|
|
535
565
|
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
@@ -539,9 +569,13 @@ declare const rules$2: {
|
|
|
539
569
|
readonly "@eslint-react/no-default-props": "error";
|
|
540
570
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
541
571
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
572
|
+
readonly "@eslint-react/no-forbidden-props": "off";
|
|
542
573
|
readonly "@eslint-react/no-forward-ref": "warn";
|
|
543
574
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
575
|
+
readonly "@eslint-react/no-missing-component-display-name": "off";
|
|
576
|
+
readonly "@eslint-react/no-missing-context-display-name": "off";
|
|
544
577
|
readonly "@eslint-react/no-missing-key": "error";
|
|
578
|
+
readonly "@eslint-react/no-misused-capture-owner-stack": "off";
|
|
545
579
|
readonly "@eslint-react/no-nested-component-definitions": "error";
|
|
546
580
|
readonly "@eslint-react/no-nested-lazy-component-declarations": "error";
|
|
547
581
|
readonly "@eslint-react/no-prop-types": "error";
|
|
@@ -550,6 +584,9 @@ declare const rules$2: {
|
|
|
550
584
|
readonly "@eslint-react/no-set-state-in-component-did-update": "warn";
|
|
551
585
|
readonly "@eslint-react/no-set-state-in-component-will-update": "warn";
|
|
552
586
|
readonly "@eslint-react/no-string-refs": "error";
|
|
587
|
+
readonly "@eslint-react/no-unnecessary-key": "off";
|
|
588
|
+
readonly "@eslint-react/no-unnecessary-use-callback": "off";
|
|
589
|
+
readonly "@eslint-react/no-unnecessary-use-memo": "off";
|
|
553
590
|
readonly "@eslint-react/no-unnecessary-use-prefix": "warn";
|
|
554
591
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
555
592
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
@@ -560,6 +597,10 @@ declare const rules$2: {
|
|
|
560
597
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
561
598
|
readonly "@eslint-react/no-use-context": "warn";
|
|
562
599
|
readonly "@eslint-react/no-useless-forward-ref": "warn";
|
|
600
|
+
readonly "@eslint-react/no-useless-fragment": "off";
|
|
601
|
+
readonly "@eslint-react/prefer-destructuring-assignment": "off";
|
|
602
|
+
readonly "@eslint-react/prefer-namespace-import": "off";
|
|
603
|
+
readonly "@eslint-react/prefer-read-only-props": "off";
|
|
563
604
|
readonly "@eslint-react/prefer-use-state-lazy-initialization": "warn";
|
|
564
605
|
};
|
|
565
606
|
declare const plugins$2: {
|
|
@@ -569,14 +610,14 @@ declare const plugins$2: {
|
|
|
569
610
|
plugins: {};
|
|
570
611
|
name?: string;
|
|
571
612
|
rules?: Record<string, RuleConfig>;
|
|
572
|
-
settings?:
|
|
613
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
573
614
|
};
|
|
574
615
|
};
|
|
575
616
|
meta: {
|
|
576
617
|
name: string;
|
|
577
618
|
version: string;
|
|
578
619
|
};
|
|
579
|
-
rules: Record<string,
|
|
620
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
580
621
|
};
|
|
581
622
|
"@eslint-react/hooks-extra": {
|
|
582
623
|
configs: {
|
|
@@ -584,14 +625,14 @@ declare const plugins$2: {
|
|
|
584
625
|
plugins: {};
|
|
585
626
|
name?: string;
|
|
586
627
|
rules?: Record<string, RuleConfig>;
|
|
587
|
-
settings?:
|
|
628
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
588
629
|
};
|
|
589
630
|
};
|
|
590
631
|
meta: {
|
|
591
632
|
name: string;
|
|
592
633
|
version: string;
|
|
593
634
|
};
|
|
594
|
-
rules: Record<string,
|
|
635
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
595
636
|
};
|
|
596
637
|
"@eslint-react/naming-convention": {
|
|
597
638
|
configs: {
|
|
@@ -599,14 +640,14 @@ declare const plugins$2: {
|
|
|
599
640
|
plugins: {};
|
|
600
641
|
name?: string;
|
|
601
642
|
rules?: Record<string, RuleConfig>;
|
|
602
|
-
settings?:
|
|
643
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
603
644
|
};
|
|
604
645
|
};
|
|
605
646
|
meta: {
|
|
606
647
|
name: string;
|
|
607
648
|
version: string;
|
|
608
649
|
};
|
|
609
|
-
rules: Record<string,
|
|
650
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
610
651
|
};
|
|
611
652
|
"@eslint-react/web-api": {
|
|
612
653
|
configs: {
|
|
@@ -614,14 +655,14 @@ declare const plugins$2: {
|
|
|
614
655
|
plugins: {};
|
|
615
656
|
name?: string;
|
|
616
657
|
rules?: Record<string, RuleConfig>;
|
|
617
|
-
settings?:
|
|
658
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
618
659
|
};
|
|
619
660
|
};
|
|
620
661
|
meta: {
|
|
621
662
|
name: string;
|
|
622
663
|
version: string;
|
|
623
664
|
};
|
|
624
|
-
rules: Record<string,
|
|
665
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
625
666
|
};
|
|
626
667
|
"@eslint-react/dom": {
|
|
627
668
|
configs: {
|
|
@@ -629,14 +670,14 @@ declare const plugins$2: {
|
|
|
629
670
|
plugins: {};
|
|
630
671
|
name?: string;
|
|
631
672
|
rules?: Record<string, RuleConfig>;
|
|
632
|
-
settings?:
|
|
673
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
633
674
|
};
|
|
634
675
|
};
|
|
635
676
|
meta: {
|
|
636
677
|
name: string;
|
|
637
678
|
version: string;
|
|
638
679
|
};
|
|
639
|
-
rules: Record<string,
|
|
680
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
640
681
|
};
|
|
641
682
|
"@eslint-react": {
|
|
642
683
|
configs: {
|
|
@@ -644,26 +685,26 @@ declare const plugins$2: {
|
|
|
644
685
|
plugins: {};
|
|
645
686
|
name?: string;
|
|
646
687
|
rules?: Record<string, RuleConfig>;
|
|
647
|
-
settings?:
|
|
688
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
648
689
|
};
|
|
649
690
|
"recommended-type-checked": {
|
|
650
691
|
plugins: {};
|
|
651
692
|
name?: string;
|
|
652
693
|
rules?: Record<string, RuleConfig>;
|
|
653
|
-
settings?:
|
|
694
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
654
695
|
};
|
|
655
696
|
"recommended-typescript": {
|
|
656
697
|
plugins: {};
|
|
657
698
|
name?: string;
|
|
658
699
|
rules?: Record<string, RuleConfig>;
|
|
659
|
-
settings?:
|
|
700
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
660
701
|
};
|
|
661
702
|
};
|
|
662
703
|
meta: {
|
|
663
704
|
name: string;
|
|
664
705
|
version: string;
|
|
665
706
|
};
|
|
666
|
-
rules: Record<string,
|
|
707
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
667
708
|
};
|
|
668
709
|
};
|
|
669
710
|
declare const settings$2: {
|
|
@@ -706,13 +747,19 @@ declare const rules$1: {
|
|
|
706
747
|
readonly "@eslint-react/dom/no-use-form-state": "error";
|
|
707
748
|
readonly "@eslint-react/dom/no-void-elements-with-children": "error";
|
|
708
749
|
readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
|
|
750
|
+
readonly "@eslint-react/jsx-no-iife": "off";
|
|
751
|
+
readonly "@eslint-react/jsx-no-undef": "off";
|
|
752
|
+
readonly "@eslint-react/jsx-shorthand-boolean": "off";
|
|
753
|
+
readonly "@eslint-react/jsx-shorthand-fragment": "off";
|
|
709
754
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
710
755
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
711
756
|
readonly "@eslint-react/no-children-count": "warn";
|
|
712
757
|
readonly "@eslint-react/no-children-for-each": "warn";
|
|
713
758
|
readonly "@eslint-react/no-children-map": "warn";
|
|
714
759
|
readonly "@eslint-react/no-children-only": "warn";
|
|
760
|
+
readonly "@eslint-react/no-children-prop": "off";
|
|
715
761
|
readonly "@eslint-react/no-children-to-array": "warn";
|
|
762
|
+
readonly "@eslint-react/no-class-component": "off";
|
|
716
763
|
readonly "@eslint-react/no-clone-element": "warn";
|
|
717
764
|
readonly "@eslint-react/no-component-will-mount": "error";
|
|
718
765
|
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
@@ -722,9 +769,14 @@ declare const rules$1: {
|
|
|
722
769
|
readonly "@eslint-react/no-default-props": "error";
|
|
723
770
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
724
771
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
772
|
+
readonly "@eslint-react/no-forbidden-props": "off";
|
|
725
773
|
readonly "@eslint-react/no-forward-ref": "warn";
|
|
726
774
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
775
|
+
readonly "@eslint-react/no-leaked-conditional-rendering": "off";
|
|
776
|
+
readonly "@eslint-react/no-missing-component-display-name": "off";
|
|
777
|
+
readonly "@eslint-react/no-missing-context-display-name": "off";
|
|
727
778
|
readonly "@eslint-react/no-missing-key": "error";
|
|
779
|
+
readonly "@eslint-react/no-misused-capture-owner-stack": "off";
|
|
728
780
|
readonly "@eslint-react/no-nested-component-definitions": "error";
|
|
729
781
|
readonly "@eslint-react/no-nested-lazy-component-declarations": "error";
|
|
730
782
|
readonly "@eslint-react/no-prop-types": "error";
|
|
@@ -733,6 +785,9 @@ declare const rules$1: {
|
|
|
733
785
|
readonly "@eslint-react/no-set-state-in-component-did-update": "warn";
|
|
734
786
|
readonly "@eslint-react/no-set-state-in-component-will-update": "warn";
|
|
735
787
|
readonly "@eslint-react/no-string-refs": "error";
|
|
788
|
+
readonly "@eslint-react/no-unnecessary-key": "off";
|
|
789
|
+
readonly "@eslint-react/no-unnecessary-use-callback": "off";
|
|
790
|
+
readonly "@eslint-react/no-unnecessary-use-memo": "off";
|
|
736
791
|
readonly "@eslint-react/no-unnecessary-use-prefix": "warn";
|
|
737
792
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
738
793
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
@@ -740,9 +795,14 @@ declare const rules$1: {
|
|
|
740
795
|
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
741
796
|
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
742
797
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
798
|
+
readonly "@eslint-react/no-unused-props": "off";
|
|
743
799
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
744
800
|
readonly "@eslint-react/no-use-context": "warn";
|
|
745
801
|
readonly "@eslint-react/no-useless-forward-ref": "warn";
|
|
802
|
+
readonly "@eslint-react/no-useless-fragment": "off";
|
|
803
|
+
readonly "@eslint-react/prefer-destructuring-assignment": "off";
|
|
804
|
+
readonly "@eslint-react/prefer-namespace-import": "off";
|
|
805
|
+
readonly "@eslint-react/prefer-read-only-props": "off";
|
|
746
806
|
readonly "@eslint-react/prefer-use-state-lazy-initialization": "warn";
|
|
747
807
|
};
|
|
748
808
|
declare const plugins$1: {
|
|
@@ -752,14 +812,14 @@ declare const plugins$1: {
|
|
|
752
812
|
plugins: {};
|
|
753
813
|
name?: string;
|
|
754
814
|
rules?: Record<string, RuleConfig>;
|
|
755
|
-
settings?:
|
|
815
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
756
816
|
};
|
|
757
817
|
};
|
|
758
818
|
meta: {
|
|
759
819
|
name: string;
|
|
760
820
|
version: string;
|
|
761
821
|
};
|
|
762
|
-
rules: Record<string,
|
|
822
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
763
823
|
};
|
|
764
824
|
"@eslint-react/hooks-extra": {
|
|
765
825
|
configs: {
|
|
@@ -767,14 +827,14 @@ declare const plugins$1: {
|
|
|
767
827
|
plugins: {};
|
|
768
828
|
name?: string;
|
|
769
829
|
rules?: Record<string, RuleConfig>;
|
|
770
|
-
settings?:
|
|
830
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
771
831
|
};
|
|
772
832
|
};
|
|
773
833
|
meta: {
|
|
774
834
|
name: string;
|
|
775
835
|
version: string;
|
|
776
836
|
};
|
|
777
|
-
rules: Record<string,
|
|
837
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
778
838
|
};
|
|
779
839
|
"@eslint-react/naming-convention": {
|
|
780
840
|
configs: {
|
|
@@ -782,14 +842,14 @@ declare const plugins$1: {
|
|
|
782
842
|
plugins: {};
|
|
783
843
|
name?: string;
|
|
784
844
|
rules?: Record<string, RuleConfig>;
|
|
785
|
-
settings?:
|
|
845
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
786
846
|
};
|
|
787
847
|
};
|
|
788
848
|
meta: {
|
|
789
849
|
name: string;
|
|
790
850
|
version: string;
|
|
791
851
|
};
|
|
792
|
-
rules: Record<string,
|
|
852
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
793
853
|
};
|
|
794
854
|
"@eslint-react/web-api": {
|
|
795
855
|
configs: {
|
|
@@ -797,14 +857,14 @@ declare const plugins$1: {
|
|
|
797
857
|
plugins: {};
|
|
798
858
|
name?: string;
|
|
799
859
|
rules?: Record<string, RuleConfig>;
|
|
800
|
-
settings?:
|
|
860
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
801
861
|
};
|
|
802
862
|
};
|
|
803
863
|
meta: {
|
|
804
864
|
name: string;
|
|
805
865
|
version: string;
|
|
806
866
|
};
|
|
807
|
-
rules: Record<string,
|
|
867
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
808
868
|
};
|
|
809
869
|
"@eslint-react/dom": {
|
|
810
870
|
configs: {
|
|
@@ -812,14 +872,14 @@ declare const plugins$1: {
|
|
|
812
872
|
plugins: {};
|
|
813
873
|
name?: string;
|
|
814
874
|
rules?: Record<string, RuleConfig>;
|
|
815
|
-
settings?:
|
|
875
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
816
876
|
};
|
|
817
877
|
};
|
|
818
878
|
meta: {
|
|
819
879
|
name: string;
|
|
820
880
|
version: string;
|
|
821
881
|
};
|
|
822
|
-
rules: Record<string,
|
|
882
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
823
883
|
};
|
|
824
884
|
"@eslint-react": {
|
|
825
885
|
configs: {
|
|
@@ -827,26 +887,26 @@ declare const plugins$1: {
|
|
|
827
887
|
plugins: {};
|
|
828
888
|
name?: string;
|
|
829
889
|
rules?: Record<string, RuleConfig>;
|
|
830
|
-
settings?:
|
|
890
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
831
891
|
};
|
|
832
892
|
"recommended-type-checked": {
|
|
833
893
|
plugins: {};
|
|
834
894
|
name?: string;
|
|
835
895
|
rules?: Record<string, RuleConfig>;
|
|
836
|
-
settings?:
|
|
896
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
837
897
|
};
|
|
838
898
|
"recommended-typescript": {
|
|
839
899
|
plugins: {};
|
|
840
900
|
name?: string;
|
|
841
901
|
rules?: Record<string, RuleConfig>;
|
|
842
|
-
settings?:
|
|
902
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
843
903
|
};
|
|
844
904
|
};
|
|
845
905
|
meta: {
|
|
846
906
|
name: string;
|
|
847
907
|
version: string;
|
|
848
908
|
};
|
|
849
|
-
rules: Record<string,
|
|
909
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
850
910
|
};
|
|
851
911
|
};
|
|
852
912
|
declare const settings$1: {
|
|
@@ -863,6 +923,10 @@ declare const name = "@eslint-react/x";
|
|
|
863
923
|
declare const rules: {
|
|
864
924
|
readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
|
|
865
925
|
readonly "@eslint-react/jsx-no-duplicate-props": "warn";
|
|
926
|
+
readonly "@eslint-react/jsx-no-iife": "off";
|
|
927
|
+
readonly "@eslint-react/jsx-no-undef": "off";
|
|
928
|
+
readonly "@eslint-react/jsx-shorthand-boolean": "off";
|
|
929
|
+
readonly "@eslint-react/jsx-shorthand-fragment": "off";
|
|
866
930
|
readonly "@eslint-react/jsx-uses-react": "warn";
|
|
867
931
|
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
868
932
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
@@ -871,7 +935,9 @@ declare const rules: {
|
|
|
871
935
|
readonly "@eslint-react/no-children-for-each": "warn";
|
|
872
936
|
readonly "@eslint-react/no-children-map": "warn";
|
|
873
937
|
readonly "@eslint-react/no-children-only": "warn";
|
|
938
|
+
readonly "@eslint-react/no-children-prop": "off";
|
|
874
939
|
readonly "@eslint-react/no-children-to-array": "warn";
|
|
940
|
+
readonly "@eslint-react/no-class-component": "off";
|
|
875
941
|
readonly "@eslint-react/no-clone-element": "warn";
|
|
876
942
|
readonly "@eslint-react/no-component-will-mount": "error";
|
|
877
943
|
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
@@ -881,9 +947,14 @@ declare const rules: {
|
|
|
881
947
|
readonly "@eslint-react/no-default-props": "error";
|
|
882
948
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
883
949
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
950
|
+
readonly "@eslint-react/no-forbidden-props": "off";
|
|
884
951
|
readonly "@eslint-react/no-forward-ref": "warn";
|
|
885
952
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
953
|
+
readonly "@eslint-react/no-leaked-conditional-rendering": "off";
|
|
954
|
+
readonly "@eslint-react/no-missing-component-display-name": "off";
|
|
955
|
+
readonly "@eslint-react/no-missing-context-display-name": "off";
|
|
886
956
|
readonly "@eslint-react/no-missing-key": "error";
|
|
957
|
+
readonly "@eslint-react/no-misused-capture-owner-stack": "off";
|
|
887
958
|
readonly "@eslint-react/no-nested-component-definitions": "error";
|
|
888
959
|
readonly "@eslint-react/no-nested-lazy-component-declarations": "error";
|
|
889
960
|
readonly "@eslint-react/no-prop-types": "error";
|
|
@@ -892,6 +963,9 @@ declare const rules: {
|
|
|
892
963
|
readonly "@eslint-react/no-set-state-in-component-did-update": "warn";
|
|
893
964
|
readonly "@eslint-react/no-set-state-in-component-will-update": "warn";
|
|
894
965
|
readonly "@eslint-react/no-string-refs": "error";
|
|
966
|
+
readonly "@eslint-react/no-unnecessary-key": "off";
|
|
967
|
+
readonly "@eslint-react/no-unnecessary-use-callback": "off";
|
|
968
|
+
readonly "@eslint-react/no-unnecessary-use-memo": "off";
|
|
895
969
|
readonly "@eslint-react/no-unnecessary-use-prefix": "warn";
|
|
896
970
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
897
971
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
@@ -899,9 +973,14 @@ declare const rules: {
|
|
|
899
973
|
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
900
974
|
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
901
975
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
976
|
+
readonly "@eslint-react/no-unused-props": "off";
|
|
902
977
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
903
978
|
readonly "@eslint-react/no-use-context": "warn";
|
|
904
979
|
readonly "@eslint-react/no-useless-forward-ref": "warn";
|
|
980
|
+
readonly "@eslint-react/no-useless-fragment": "off";
|
|
981
|
+
readonly "@eslint-react/prefer-destructuring-assignment": "off";
|
|
982
|
+
readonly "@eslint-react/prefer-namespace-import": "off";
|
|
983
|
+
readonly "@eslint-react/prefer-read-only-props": "off";
|
|
905
984
|
readonly "@eslint-react/prefer-use-state-lazy-initialization": "warn";
|
|
906
985
|
};
|
|
907
986
|
declare const plugins: {
|
|
@@ -911,26 +990,26 @@ declare const plugins: {
|
|
|
911
990
|
plugins: {};
|
|
912
991
|
name?: string;
|
|
913
992
|
rules?: Record<string, RuleConfig>;
|
|
914
|
-
settings?:
|
|
993
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
915
994
|
};
|
|
916
995
|
"recommended-type-checked": {
|
|
917
996
|
plugins: {};
|
|
918
997
|
name?: string;
|
|
919
998
|
rules?: Record<string, RuleConfig>;
|
|
920
|
-
settings?:
|
|
999
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
921
1000
|
};
|
|
922
1001
|
"recommended-typescript": {
|
|
923
1002
|
plugins: {};
|
|
924
1003
|
name?: string;
|
|
925
1004
|
rules?: Record<string, RuleConfig>;
|
|
926
|
-
settings?:
|
|
1005
|
+
settings?: _eslint_react_kit0.SettingsConfig;
|
|
927
1006
|
};
|
|
928
1007
|
};
|
|
929
1008
|
meta: {
|
|
930
1009
|
name: string;
|
|
931
1010
|
version: string;
|
|
932
1011
|
};
|
|
933
|
-
rules: Record<string,
|
|
1012
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
934
1013
|
};
|
|
935
1014
|
};
|
|
936
1015
|
declare const settings: {
|
|
@@ -962,7 +1041,7 @@ declare const _default: {
|
|
|
962
1041
|
name: string;
|
|
963
1042
|
version: string;
|
|
964
1043
|
};
|
|
965
|
-
rules: Record<string,
|
|
1044
|
+
rules: Record<string, _eslint_react_kit0.CompatibleRule>;
|
|
966
1045
|
};
|
|
967
1046
|
//#endregion
|
|
968
1047
|
export { _default as default };
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
|
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
11
|
var name = "@eslint-react/eslint-plugin";
|
|
12
|
-
var version = "2.0.6
|
|
12
|
+
var version = "2.0.6";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/configs/dom.ts
|
|
@@ -52,6 +52,10 @@ const name$12 = "@eslint-react/x";
|
|
|
52
52
|
const rules$13 = {
|
|
53
53
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
54
54
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
55
|
+
"@eslint-react/jsx-no-iife": "off",
|
|
56
|
+
"@eslint-react/jsx-no-undef": "off",
|
|
57
|
+
"@eslint-react/jsx-shorthand-boolean": "off",
|
|
58
|
+
"@eslint-react/jsx-shorthand-fragment": "off",
|
|
55
59
|
"@eslint-react/jsx-uses-react": "warn",
|
|
56
60
|
"@eslint-react/jsx-uses-vars": "warn",
|
|
57
61
|
"@eslint-react/no-access-state-in-setstate": "error",
|
|
@@ -60,7 +64,9 @@ const rules$13 = {
|
|
|
60
64
|
"@eslint-react/no-children-for-each": "warn",
|
|
61
65
|
"@eslint-react/no-children-map": "warn",
|
|
62
66
|
"@eslint-react/no-children-only": "warn",
|
|
67
|
+
"@eslint-react/no-children-prop": "off",
|
|
63
68
|
"@eslint-react/no-children-to-array": "warn",
|
|
69
|
+
"@eslint-react/no-class-component": "off",
|
|
64
70
|
"@eslint-react/no-clone-element": "warn",
|
|
65
71
|
"@eslint-react/no-component-will-mount": "error",
|
|
66
72
|
"@eslint-react/no-component-will-receive-props": "error",
|
|
@@ -70,9 +76,14 @@ const rules$13 = {
|
|
|
70
76
|
"@eslint-react/no-default-props": "error",
|
|
71
77
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
72
78
|
"@eslint-react/no-duplicate-key": "error",
|
|
79
|
+
"@eslint-react/no-forbidden-props": "off",
|
|
73
80
|
"@eslint-react/no-forward-ref": "warn",
|
|
74
81
|
"@eslint-react/no-implicit-key": "warn",
|
|
82
|
+
"@eslint-react/no-leaked-conditional-rendering": "off",
|
|
83
|
+
"@eslint-react/no-missing-component-display-name": "off",
|
|
84
|
+
"@eslint-react/no-missing-context-display-name": "off",
|
|
75
85
|
"@eslint-react/no-missing-key": "error",
|
|
86
|
+
"@eslint-react/no-misused-capture-owner-stack": "off",
|
|
76
87
|
"@eslint-react/no-nested-component-definitions": "error",
|
|
77
88
|
"@eslint-react/no-nested-lazy-component-declarations": "error",
|
|
78
89
|
"@eslint-react/no-prop-types": "error",
|
|
@@ -81,6 +92,9 @@ const rules$13 = {
|
|
|
81
92
|
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
82
93
|
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
83
94
|
"@eslint-react/no-string-refs": "error",
|
|
95
|
+
"@eslint-react/no-unnecessary-key": "off",
|
|
96
|
+
"@eslint-react/no-unnecessary-use-callback": "off",
|
|
97
|
+
"@eslint-react/no-unnecessary-use-memo": "off",
|
|
84
98
|
"@eslint-react/no-unnecessary-use-prefix": "warn",
|
|
85
99
|
"@eslint-react/no-unsafe-component-will-mount": "warn",
|
|
86
100
|
"@eslint-react/no-unsafe-component-will-receive-props": "warn",
|
|
@@ -88,9 +102,14 @@ const rules$13 = {
|
|
|
88
102
|
"@eslint-react/no-unstable-context-value": "warn",
|
|
89
103
|
"@eslint-react/no-unstable-default-props": "warn",
|
|
90
104
|
"@eslint-react/no-unused-class-component-members": "warn",
|
|
105
|
+
"@eslint-react/no-unused-props": "off",
|
|
91
106
|
"@eslint-react/no-unused-state": "warn",
|
|
92
107
|
"@eslint-react/no-use-context": "warn",
|
|
93
108
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
109
|
+
"@eslint-react/no-useless-fragment": "off",
|
|
110
|
+
"@eslint-react/prefer-destructuring-assignment": "off",
|
|
111
|
+
"@eslint-react/prefer-namespace-import": "off",
|
|
112
|
+
"@eslint-react/prefer-read-only-props": "off",
|
|
94
113
|
"@eslint-react/prefer-use-state-lazy-initialization": "warn"
|
|
95
114
|
};
|
|
96
115
|
const plugins$6 = { "@eslint-react": react };
|
|
@@ -133,8 +152,10 @@ const rules$3 = {
|
|
|
133
152
|
"@eslint-react/no-default-props": "error",
|
|
134
153
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
135
154
|
"@eslint-react/no-duplicate-key": "error",
|
|
155
|
+
"@eslint-react/no-forbidden-props": "off",
|
|
136
156
|
"@eslint-react/no-forward-ref": "warn",
|
|
137
157
|
"@eslint-react/no-implicit-key": "warn",
|
|
158
|
+
"@eslint-react/no-leaked-conditional-rendering": "off",
|
|
138
159
|
"@eslint-react/no-missing-component-display-name": "warn",
|
|
139
160
|
"@eslint-react/no-missing-context-display-name": "warn",
|
|
140
161
|
"@eslint-react/no-missing-key": "error",
|
|
@@ -157,15 +178,15 @@ const rules$3 = {
|
|
|
157
178
|
"@eslint-react/no-unstable-context-value": "warn",
|
|
158
179
|
"@eslint-react/no-unstable-default-props": "warn",
|
|
159
180
|
"@eslint-react/no-unused-class-component-members": "warn",
|
|
181
|
+
"@eslint-react/no-unused-props": "off",
|
|
160
182
|
"@eslint-react/no-unused-state": "warn",
|
|
161
183
|
"@eslint-react/no-use-context": "warn",
|
|
162
184
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
163
185
|
"@eslint-react/no-useless-fragment": "warn",
|
|
164
186
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
165
187
|
"@eslint-react/prefer-namespace-import": "warn",
|
|
188
|
+
"@eslint-react/prefer-read-only-props": "off",
|
|
166
189
|
"@eslint-react/prefer-use-state-lazy-initialization": "warn",
|
|
167
|
-
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
168
|
-
"@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
|
|
169
190
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
170
191
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
171
192
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -177,19 +198,22 @@ const rules$3 = {
|
|
|
177
198
|
"@eslint-react/dom/no-render": "error",
|
|
178
199
|
"@eslint-react/dom/no-render-return-value": "error",
|
|
179
200
|
"@eslint-react/dom/no-script-url": "warn",
|
|
201
|
+
"@eslint-react/dom/no-string-style-prop": "error",
|
|
180
202
|
"@eslint-react/dom/no-unknown-property": "warn",
|
|
181
203
|
"@eslint-react/dom/no-unsafe-iframe-sandbox": "warn",
|
|
182
204
|
"@eslint-react/dom/no-unsafe-target-blank": "warn",
|
|
183
|
-
"@eslint-react/dom/no-use-form-state": "
|
|
205
|
+
"@eslint-react/dom/no-use-form-state": "warn",
|
|
184
206
|
"@eslint-react/dom/no-void-elements-with-children": "error",
|
|
207
|
+
"@eslint-react/dom/prefer-namespace-import": "warn",
|
|
185
208
|
"@eslint-react/web-api/no-leaked-event-listener": "warn",
|
|
186
209
|
"@eslint-react/web-api/no-leaked-interval": "warn",
|
|
187
210
|
"@eslint-react/web-api/no-leaked-resize-observer": "warn",
|
|
188
211
|
"@eslint-react/web-api/no-leaked-timeout": "warn",
|
|
212
|
+
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
189
213
|
"@eslint-react/naming-convention/component-name": "warn",
|
|
190
214
|
"@eslint-react/naming-convention/context-name": "warn",
|
|
191
|
-
"@eslint-react/naming-convention/filename": "
|
|
192
|
-
"@eslint-react/naming-convention/filename-extension": "
|
|
215
|
+
"@eslint-react/naming-convention/filename": "off",
|
|
216
|
+
"@eslint-react/naming-convention/filename-extension": "off",
|
|
193
217
|
"@eslint-react/naming-convention/use-state": "warn"
|
|
194
218
|
};
|
|
195
219
|
const plugins$5 = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "2.0.6
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -42,15 +42,15 @@
|
|
|
42
42
|
"@typescript-eslint/types": "^8.45.0",
|
|
43
43
|
"@typescript-eslint/utils": "^8.45.0",
|
|
44
44
|
"ts-api-utils": "^2.1.0",
|
|
45
|
-
"@eslint-react/eff": "2.0.6
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"eslint-plugin-react-debug": "2.0.6
|
|
48
|
-
"
|
|
49
|
-
"eslint-
|
|
50
|
-
"eslint-plugin-react-
|
|
51
|
-
"eslint-plugin-react-
|
|
52
|
-
"eslint-plugin-react-
|
|
53
|
-
"eslint-plugin-react-x": "2.0.6
|
|
45
|
+
"@eslint-react/eff": "2.0.6",
|
|
46
|
+
"@eslint-react/shared": "2.0.6",
|
|
47
|
+
"eslint-plugin-react-debug": "2.0.6",
|
|
48
|
+
"eslint-plugin-react-dom": "2.0.6",
|
|
49
|
+
"@eslint-react/kit": "2.0.6",
|
|
50
|
+
"eslint-plugin-react-hooks-extra": "2.0.6",
|
|
51
|
+
"eslint-plugin-react-naming-convention": "2.0.6",
|
|
52
|
+
"eslint-plugin-react-web-api": "2.0.6",
|
|
53
|
+
"eslint-plugin-react-x": "2.0.6"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"tsdown": "^0.15.6",
|