@eslint-react/eslint-plugin 2.0.7-next.2 → 2.1.0-next.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.
- package/README.md +5 -0
- package/dist/index.d.ts +127 -30
- package/dist/index.js +76 -53
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
- [Benchmark](#benchmark)
|
|
26
26
|
- [FAQ](#faq)
|
|
27
27
|
- [Roadmap](#roadmap)
|
|
28
|
+
- [Disclaimer](#disclaimer)
|
|
28
29
|
- [Contributing](#contributing)
|
|
29
30
|
- [License](#license)
|
|
30
31
|
|
|
@@ -165,6 +166,10 @@ export default defineConfig([
|
|
|
165
166
|
|
|
166
167
|
- [Milestone 3.0 ↗](https://eslint-react.xyz/docs/roadmap#milestone-30-tbd)
|
|
167
168
|
|
|
169
|
+
## Disclaimer
|
|
170
|
+
|
|
171
|
+
ESLint React is not affiliated with Meta Corporation or [facebook/react](https://github.com/facebook/react) project or React team, nor is it endorsed or sponsored by them.
|
|
172
|
+
|
|
168
173
|
## Contributing
|
|
169
174
|
|
|
170
175
|
Contributions are welcome!
|
package/dist/index.d.ts
CHANGED
|
@@ -3,10 +3,10 @@ import { RuleConfig } from "@eslint-react/kit";
|
|
|
3
3
|
|
|
4
4
|
//#region src/configs/all.d.ts
|
|
5
5
|
declare namespace all_d_exports {
|
|
6
|
-
export { name$
|
|
6
|
+
export { name$13 as name, plugins$7 as plugins, rules$13 as rules, settings$4 as settings };
|
|
7
7
|
}
|
|
8
|
-
declare const name$
|
|
9
|
-
declare const rules$
|
|
8
|
+
declare const name$13 = "@eslint-react/all";
|
|
9
|
+
declare const rules$13: {
|
|
10
10
|
readonly "@eslint-react/jsx-key-before-spread": "warn";
|
|
11
11
|
readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
|
|
12
12
|
readonly "@eslint-react/jsx-no-duplicate-props": "warn";
|
|
@@ -98,7 +98,7 @@ declare const rules$12: {
|
|
|
98
98
|
readonly "@eslint-react/naming-convention/filename-extension": "off";
|
|
99
99
|
readonly "@eslint-react/naming-convention/use-state": "warn";
|
|
100
100
|
};
|
|
101
|
-
declare const plugins$
|
|
101
|
+
declare const plugins$7: {
|
|
102
102
|
"@eslint-react/debug": {
|
|
103
103
|
configs: {
|
|
104
104
|
all: {
|
|
@@ -202,7 +202,7 @@ declare const plugins$6: {
|
|
|
202
202
|
rules: Record<string, _eslint_react_kit4.CompatibleRule>;
|
|
203
203
|
};
|
|
204
204
|
};
|
|
205
|
-
declare const settings$
|
|
205
|
+
declare const settings$4: {
|
|
206
206
|
"react-x": {
|
|
207
207
|
readonly version: "detect";
|
|
208
208
|
readonly importSource: "react";
|
|
@@ -210,17 +210,17 @@ declare const settings$5: {
|
|
|
210
210
|
};
|
|
211
211
|
};
|
|
212
212
|
declare namespace debug_d_exports {
|
|
213
|
-
export { name$
|
|
213
|
+
export { name$12 as name, plugins$6 as plugins, rules$12 as rules };
|
|
214
214
|
}
|
|
215
|
-
declare const name$
|
|
216
|
-
declare const rules$
|
|
215
|
+
declare const name$12 = "@eslint-react/debug";
|
|
216
|
+
declare const rules$12: {
|
|
217
217
|
readonly "@eslint-react/debug/class-component": "warn";
|
|
218
218
|
readonly "@eslint-react/debug/function-component": "warn";
|
|
219
219
|
readonly "@eslint-react/debug/hook": "warn";
|
|
220
220
|
readonly "@eslint-react/debug/is-from-react": "warn";
|
|
221
221
|
readonly "@eslint-react/debug/jsx": "warn";
|
|
222
222
|
};
|
|
223
|
-
declare const plugins$
|
|
223
|
+
declare const plugins$6: {
|
|
224
224
|
"@eslint-react/debug": {
|
|
225
225
|
configs: {
|
|
226
226
|
all: {
|
|
@@ -238,35 +238,35 @@ declare const plugins$5: {
|
|
|
238
238
|
};
|
|
239
239
|
};
|
|
240
240
|
declare namespace disable_conflict_eslint_plugin_react_d_exports {
|
|
241
|
+
export { name$11 as name, rules$11 as rules };
|
|
242
|
+
}
|
|
243
|
+
declare const name$11 = "@eslint-react/disable-conflict-eslint-plugin-react";
|
|
244
|
+
declare const rules$11: Record<string, RuleConfig>;
|
|
245
|
+
declare namespace disable_debug_d_exports {
|
|
241
246
|
export { name$10 as name, rules$10 as rules };
|
|
242
247
|
}
|
|
243
|
-
declare const name$10 = "@eslint-react/disable-
|
|
248
|
+
declare const name$10 = "@eslint-react/disable-debug";
|
|
244
249
|
declare const rules$10: Record<string, RuleConfig>;
|
|
245
|
-
declare namespace
|
|
250
|
+
declare namespace disable_dom_d_exports {
|
|
246
251
|
export { name$9 as name, rules$9 as rules };
|
|
247
252
|
}
|
|
248
|
-
declare const name$9 = "@eslint-react/disable-
|
|
253
|
+
declare const name$9 = "@eslint-react/disable-dom";
|
|
249
254
|
declare const rules$9: Record<string, RuleConfig>;
|
|
250
|
-
declare namespace
|
|
255
|
+
declare namespace disable_type_checked_d_exports {
|
|
251
256
|
export { name$8 as name, rules$8 as rules };
|
|
252
257
|
}
|
|
253
|
-
declare const name$8 = "@eslint-react/disable-
|
|
258
|
+
declare const name$8 = "@eslint-react/disable-type-checked";
|
|
254
259
|
declare const rules$8: Record<string, RuleConfig>;
|
|
255
|
-
declare namespace
|
|
260
|
+
declare namespace disable_web_api_d_exports {
|
|
256
261
|
export { name$7 as name, rules$7 as rules };
|
|
257
262
|
}
|
|
258
|
-
declare const name$7 = "@eslint-react/disable-
|
|
263
|
+
declare const name$7 = "@eslint-react/disable-web-api";
|
|
259
264
|
declare const rules$7: Record<string, RuleConfig>;
|
|
260
|
-
declare namespace disable_web_api_d_exports {
|
|
261
|
-
export { name$6 as name, rules$6 as rules };
|
|
262
|
-
}
|
|
263
|
-
declare const name$6 = "@eslint-react/disable-web-api";
|
|
264
|
-
declare const rules$6: Record<string, RuleConfig>;
|
|
265
265
|
declare namespace dom_d_exports {
|
|
266
|
-
export { name$
|
|
266
|
+
export { name$6 as name, plugins$5 as plugins, rules$6 as rules };
|
|
267
267
|
}
|
|
268
|
-
declare const name$
|
|
269
|
-
declare const rules$
|
|
268
|
+
declare const name$6 = "@eslint-react/dom";
|
|
269
|
+
declare const rules$6: {
|
|
270
270
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
271
271
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error";
|
|
272
272
|
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
@@ -283,7 +283,7 @@ declare const rules$5: {
|
|
|
283
283
|
readonly "@eslint-react/dom/no-use-form-state": "error";
|
|
284
284
|
readonly "@eslint-react/dom/no-void-elements-with-children": "error";
|
|
285
285
|
};
|
|
286
|
-
declare const plugins$
|
|
286
|
+
declare const plugins$5: {
|
|
287
287
|
"@eslint-react/dom": {
|
|
288
288
|
configs: {
|
|
289
289
|
recommended: {
|
|
@@ -300,11 +300,63 @@ declare const plugins$4: {
|
|
|
300
300
|
rules: Record<string, _eslint_react_kit4.CompatibleRule>;
|
|
301
301
|
};
|
|
302
302
|
};
|
|
303
|
-
declare
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
303
|
+
declare namespace no_deprecated_d_exports {
|
|
304
|
+
export { name$5 as name, plugins$4 as plugins, rules$5 as rules };
|
|
305
|
+
}
|
|
306
|
+
declare const name$5 = "@eslint-react/no-deprecated";
|
|
307
|
+
declare const rules$5: {
|
|
308
|
+
readonly "@eslint-react/no-component-will-mount": "error";
|
|
309
|
+
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
310
|
+
readonly "@eslint-react/no-component-will-update": "error";
|
|
311
|
+
readonly "@eslint-react/no-create-ref": "error";
|
|
312
|
+
readonly "@eslint-react/no-forward-ref": "error";
|
|
313
|
+
readonly "@eslint-react/dom/no-find-dom-node": "error";
|
|
314
|
+
readonly "@eslint-react/dom/no-hydrate": "error";
|
|
315
|
+
readonly "@eslint-react/dom/no-render": "error";
|
|
316
|
+
readonly "@eslint-react/dom/no-render-return-value": "error";
|
|
317
|
+
};
|
|
318
|
+
declare const plugins$4: {
|
|
319
|
+
"@eslint-react/dom": {
|
|
320
|
+
configs: {
|
|
321
|
+
recommended: {
|
|
322
|
+
plugins: {};
|
|
323
|
+
name?: string;
|
|
324
|
+
rules?: Record<string, RuleConfig>;
|
|
325
|
+
settings?: _eslint_react_kit4.SettingsConfig;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
meta: {
|
|
329
|
+
name: string;
|
|
330
|
+
version: string;
|
|
331
|
+
};
|
|
332
|
+
rules: Record<string, _eslint_react_kit4.CompatibleRule>;
|
|
333
|
+
};
|
|
334
|
+
"@eslint-react": {
|
|
335
|
+
configs: {
|
|
336
|
+
recommended: {
|
|
337
|
+
plugins: {};
|
|
338
|
+
name?: string;
|
|
339
|
+
rules?: Record<string, RuleConfig>;
|
|
340
|
+
settings?: _eslint_react_kit4.SettingsConfig;
|
|
341
|
+
};
|
|
342
|
+
"recommended-type-checked": {
|
|
343
|
+
plugins: {};
|
|
344
|
+
name?: string;
|
|
345
|
+
rules?: Record<string, RuleConfig>;
|
|
346
|
+
settings?: _eslint_react_kit4.SettingsConfig;
|
|
347
|
+
};
|
|
348
|
+
"recommended-typescript": {
|
|
349
|
+
plugins: {};
|
|
350
|
+
name?: string;
|
|
351
|
+
rules?: Record<string, RuleConfig>;
|
|
352
|
+
settings?: _eslint_react_kit4.SettingsConfig;
|
|
353
|
+
};
|
|
354
|
+
};
|
|
355
|
+
meta: {
|
|
356
|
+
name: string;
|
|
357
|
+
version: string;
|
|
358
|
+
};
|
|
359
|
+
rules: Record<string, _eslint_react_kit4.CompatibleRule>;
|
|
308
360
|
};
|
|
309
361
|
};
|
|
310
362
|
declare namespace off_d_exports {
|
|
@@ -1023,18 +1075,63 @@ declare const settings: {
|
|
|
1023
1075
|
//#region src/index.d.ts
|
|
1024
1076
|
declare const _default: {
|
|
1025
1077
|
configs: {
|
|
1078
|
+
/**
|
|
1079
|
+
* Enable all rules in this plugin
|
|
1080
|
+
*/
|
|
1026
1081
|
all: typeof all_d_exports;
|
|
1082
|
+
/**
|
|
1083
|
+
* Enable debug rules
|
|
1084
|
+
*/
|
|
1027
1085
|
debug: typeof debug_d_exports;
|
|
1086
|
+
/**
|
|
1087
|
+
* Disable rules in `eslint-plugin-react` that conflict with rules in our plugins
|
|
1088
|
+
*/
|
|
1028
1089
|
"disable-conflict-eslint-plugin-react": typeof disable_conflict_eslint_plugin_react_d_exports;
|
|
1090
|
+
/**
|
|
1091
|
+
* Disable debug rules
|
|
1092
|
+
*/
|
|
1029
1093
|
"disable-debug": typeof disable_debug_d_exports;
|
|
1094
|
+
/**
|
|
1095
|
+
* Disable rules in the `dom` preset
|
|
1096
|
+
*/
|
|
1030
1097
|
"disable-dom": typeof disable_dom_d_exports;
|
|
1098
|
+
/**
|
|
1099
|
+
* Disable rules that require type information
|
|
1100
|
+
*/
|
|
1031
1101
|
"disable-type-checked": typeof disable_type_checked_d_exports;
|
|
1102
|
+
/**
|
|
1103
|
+
* Disable rules in the `web-api` preset
|
|
1104
|
+
*/
|
|
1032
1105
|
"disable-web-api": typeof disable_web_api_d_exports;
|
|
1106
|
+
/**
|
|
1107
|
+
* Enable rules for `"react-dom"`
|
|
1108
|
+
*/
|
|
1033
1109
|
dom: typeof dom_d_exports;
|
|
1110
|
+
/**
|
|
1111
|
+
* Enable all non-deprecated rules from the `x`, `dom`, and `web-api` presets
|
|
1112
|
+
* This preset sets the severity of these rules to `"error"`
|
|
1113
|
+
*/
|
|
1114
|
+
"no-deprecated": typeof no_deprecated_d_exports;
|
|
1115
|
+
/**
|
|
1116
|
+
* Disable all rules in this plugin except for debug rules
|
|
1117
|
+
*/
|
|
1034
1118
|
off: typeof off_d_exports;
|
|
1119
|
+
/**
|
|
1120
|
+
* Enforce rules that are recommended by ESLint React for general purpose React + React DOM projects
|
|
1121
|
+
* This preset includes the `x`, `dom`, and `web-api` presets
|
|
1122
|
+
*/
|
|
1035
1123
|
recommended: typeof recommended_d_exports;
|
|
1124
|
+
/**
|
|
1125
|
+
* Same as the `recommended-typescript` preset but enables additional rules that require type information
|
|
1126
|
+
*/
|
|
1036
1127
|
"recommended-type-checked": typeof recommended_type_checked_d_exports;
|
|
1128
|
+
/**
|
|
1129
|
+
* Same as the `recommended` preset but disables rules that can be enforced by TypeScript
|
|
1130
|
+
*/
|
|
1037
1131
|
"recommended-typescript": typeof recommended_typescript_d_exports;
|
|
1132
|
+
/**
|
|
1133
|
+
* Enable rules for `"react"`
|
|
1134
|
+
*/
|
|
1038
1135
|
x: typeof x_d_exports;
|
|
1039
1136
|
};
|
|
1040
1137
|
meta: {
|
package/dist/index.js
CHANGED
|
@@ -9,18 +9,17 @@ 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
|
|
12
|
+
var version = "2.1.0-next.0";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/configs/dom.ts
|
|
16
16
|
var dom_exports = /* @__PURE__ */ __export({
|
|
17
|
-
name: () => name$
|
|
18
|
-
plugins: () => plugins$
|
|
19
|
-
rules: () => rules$
|
|
20
|
-
settings: () => settings$6
|
|
17
|
+
name: () => name$14,
|
|
18
|
+
plugins: () => plugins$8,
|
|
19
|
+
rules: () => rules$9
|
|
21
20
|
});
|
|
22
|
-
const name$
|
|
23
|
-
const rules$
|
|
21
|
+
const name$14 = "@eslint-react/dom";
|
|
22
|
+
const rules$9 = {
|
|
24
23
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
25
24
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
26
25
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -37,19 +36,18 @@ const rules$8 = {
|
|
|
37
36
|
"@eslint-react/dom/no-use-form-state": "error",
|
|
38
37
|
"@eslint-react/dom/no-void-elements-with-children": "error"
|
|
39
38
|
};
|
|
40
|
-
const plugins$
|
|
41
|
-
const settings$6 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
39
|
+
const plugins$8 = { "@eslint-react/dom": reactDom };
|
|
42
40
|
|
|
43
41
|
//#endregion
|
|
44
42
|
//#region src/configs/x.ts
|
|
45
43
|
var x_exports = /* @__PURE__ */ __export({
|
|
46
|
-
name: () => name$
|
|
47
|
-
plugins: () => plugins$
|
|
48
|
-
rules: () => rules$
|
|
44
|
+
name: () => name$13,
|
|
45
|
+
plugins: () => plugins$7,
|
|
46
|
+
rules: () => rules$14,
|
|
49
47
|
settings: () => settings$5
|
|
50
48
|
});
|
|
51
|
-
const name$
|
|
52
|
-
const rules$
|
|
49
|
+
const name$13 = "@eslint-react/x";
|
|
50
|
+
const rules$14 = {
|
|
53
51
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
54
52
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
55
53
|
"@eslint-react/jsx-no-iife": "off",
|
|
@@ -112,18 +110,18 @@ const rules$13 = {
|
|
|
112
110
|
"@eslint-react/prefer-read-only-props": "off",
|
|
113
111
|
"@eslint-react/prefer-use-state-lazy-initialization": "warn"
|
|
114
112
|
};
|
|
115
|
-
const plugins$
|
|
113
|
+
const plugins$7 = { "@eslint-react": react };
|
|
116
114
|
const settings$5 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
117
115
|
|
|
118
116
|
//#endregion
|
|
119
117
|
//#region src/configs/all.ts
|
|
120
118
|
var all_exports = /* @__PURE__ */ __export({
|
|
121
|
-
name: () => name$
|
|
122
|
-
plugins: () => plugins$
|
|
119
|
+
name: () => name$12,
|
|
120
|
+
plugins: () => plugins$6,
|
|
123
121
|
rules: () => rules$3,
|
|
124
122
|
settings: () => settings$4
|
|
125
123
|
});
|
|
126
|
-
const name$
|
|
124
|
+
const name$12 = "@eslint-react/all";
|
|
127
125
|
const rules$3 = {
|
|
128
126
|
"@eslint-react/jsx-key-before-spread": "warn",
|
|
129
127
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
@@ -216,38 +214,38 @@ const rules$3 = {
|
|
|
216
214
|
"@eslint-react/naming-convention/filename-extension": "off",
|
|
217
215
|
"@eslint-react/naming-convention/use-state": "warn"
|
|
218
216
|
};
|
|
219
|
-
const plugins$
|
|
220
|
-
...plugins$6,
|
|
217
|
+
const plugins$6 = {
|
|
221
218
|
...plugins$7,
|
|
219
|
+
...plugins$8,
|
|
222
220
|
"@eslint-react/debug": reactDebug,
|
|
223
221
|
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
224
222
|
"@eslint-react/naming-convention": reactNamingConvention,
|
|
225
223
|
"@eslint-react/web-api": reactWebApi
|
|
226
224
|
};
|
|
227
|
-
const settings$4 = { ...settings$
|
|
225
|
+
const settings$4 = { ...settings$5 };
|
|
228
226
|
|
|
229
227
|
//#endregion
|
|
230
228
|
//#region src/configs/debug.ts
|
|
231
229
|
var debug_exports = /* @__PURE__ */ __export({
|
|
232
|
-
name: () => name$
|
|
233
|
-
plugins: () => plugins$
|
|
234
|
-
rules: () => rules$
|
|
230
|
+
name: () => name$11,
|
|
231
|
+
plugins: () => plugins$5,
|
|
232
|
+
rules: () => rules$11
|
|
235
233
|
});
|
|
236
|
-
const name$
|
|
237
|
-
const rules$
|
|
234
|
+
const name$11 = "@eslint-react/debug";
|
|
235
|
+
const rules$11 = {
|
|
238
236
|
"@eslint-react/debug/class-component": "warn",
|
|
239
237
|
"@eslint-react/debug/function-component": "warn",
|
|
240
238
|
"@eslint-react/debug/hook": "warn",
|
|
241
239
|
"@eslint-react/debug/is-from-react": "warn",
|
|
242
240
|
"@eslint-react/debug/jsx": "warn"
|
|
243
241
|
};
|
|
244
|
-
const plugins$
|
|
242
|
+
const plugins$5 = { "@eslint-react/debug": reactDebug };
|
|
245
243
|
|
|
246
244
|
//#endregion
|
|
247
245
|
//#region src/configs/disable-conflict-eslint-plugin-react.ts
|
|
248
246
|
var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __export({
|
|
249
|
-
name: () => name$
|
|
250
|
-
rules: () => rules$
|
|
247
|
+
name: () => name$10,
|
|
248
|
+
rules: () => rules$13
|
|
251
249
|
});
|
|
252
250
|
const conflictingRules = [
|
|
253
251
|
"button-has-type",
|
|
@@ -297,34 +295,34 @@ const conflictingRules = [
|
|
|
297
295
|
"prop-types",
|
|
298
296
|
"void-dom-elements-no-children"
|
|
299
297
|
];
|
|
300
|
-
const name$
|
|
301
|
-
const rules$
|
|
298
|
+
const name$10 = "@eslint-react/disable-conflict-eslint-plugin-react";
|
|
299
|
+
const rules$13 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
|
|
302
300
|
|
|
303
301
|
//#endregion
|
|
304
302
|
//#region src/configs/disable-debug.ts
|
|
305
303
|
var disable_debug_exports = /* @__PURE__ */ __export({
|
|
306
|
-
name: () => name$
|
|
307
|
-
rules: () => rules$
|
|
304
|
+
name: () => name$9,
|
|
305
|
+
rules: () => rules$12
|
|
308
306
|
});
|
|
309
|
-
const name$
|
|
310
|
-
const rules$
|
|
307
|
+
const name$9 = "@eslint-react/disable-debug";
|
|
308
|
+
const rules$12 = Object.fromEntries(Object.entries(rules$11).map(([rule]) => [rule, "off"]));
|
|
311
309
|
|
|
312
310
|
//#endregion
|
|
313
311
|
//#region src/configs/disable-dom.ts
|
|
314
312
|
var disable_dom_exports = /* @__PURE__ */ __export({
|
|
315
|
-
name: () => name$
|
|
316
|
-
rules: () => rules$
|
|
313
|
+
name: () => name$8,
|
|
314
|
+
rules: () => rules$10
|
|
317
315
|
});
|
|
318
|
-
const name$
|
|
319
|
-
const rules$
|
|
316
|
+
const name$8 = "@eslint-react/disable-dom";
|
|
317
|
+
const rules$10 = Object.fromEntries(Object.entries(rules$9).map(([key]) => [key, "off"]));
|
|
320
318
|
|
|
321
319
|
//#endregion
|
|
322
320
|
//#region src/configs/disable-type-checked.ts
|
|
323
321
|
var disable_type_checked_exports = /* @__PURE__ */ __export({
|
|
324
|
-
name: () => name$
|
|
322
|
+
name: () => name$7,
|
|
325
323
|
rules: () => rules$4
|
|
326
324
|
});
|
|
327
|
-
const name$
|
|
325
|
+
const name$7 = "@eslint-react/disable-type-checked";
|
|
328
326
|
const rules$4 = {
|
|
329
327
|
"@eslint-react/no-leaked-conditional-rendering": "off",
|
|
330
328
|
"@eslint-react/no-unused-props": "off",
|
|
@@ -333,23 +331,47 @@ const rules$4 = {
|
|
|
333
331
|
|
|
334
332
|
//#endregion
|
|
335
333
|
//#region src/configs/web-api.ts
|
|
336
|
-
const rules$
|
|
334
|
+
const rules$7 = {
|
|
337
335
|
"@eslint-react/web-api/no-leaked-event-listener": "warn",
|
|
338
336
|
"@eslint-react/web-api/no-leaked-interval": "warn",
|
|
339
337
|
"@eslint-react/web-api/no-leaked-resize-observer": "warn",
|
|
340
338
|
"@eslint-react/web-api/no-leaked-timeout": "warn"
|
|
341
339
|
};
|
|
342
|
-
const plugins$
|
|
343
|
-
const settings$3 = { ...settings$
|
|
340
|
+
const plugins$4 = { "@eslint-react/web-api": reactWebApi };
|
|
341
|
+
const settings$3 = { ...settings$5 };
|
|
344
342
|
|
|
345
343
|
//#endregion
|
|
346
344
|
//#region src/configs/disable-web-api.ts
|
|
347
345
|
var disable_web_api_exports = /* @__PURE__ */ __export({
|
|
346
|
+
name: () => name$6,
|
|
347
|
+
rules: () => rules$8
|
|
348
|
+
});
|
|
349
|
+
const name$6 = "@eslint-react/disable-web-api";
|
|
350
|
+
const rules$8 = Object.fromEntries(Object.entries(rules$7).map(([key]) => [key, "off"]));
|
|
351
|
+
|
|
352
|
+
//#endregion
|
|
353
|
+
//#region src/configs/no-deprecated.ts
|
|
354
|
+
var no_deprecated_exports = /* @__PURE__ */ __export({
|
|
348
355
|
name: () => name$5,
|
|
349
|
-
|
|
356
|
+
plugins: () => plugins$3,
|
|
357
|
+
rules: () => rules$6
|
|
350
358
|
});
|
|
351
|
-
const name$5 = "@eslint-react/
|
|
352
|
-
const rules$
|
|
359
|
+
const name$5 = "@eslint-react/no-deprecated";
|
|
360
|
+
const rules$6 = {
|
|
361
|
+
"@eslint-react/no-component-will-mount": "error",
|
|
362
|
+
"@eslint-react/no-component-will-receive-props": "error",
|
|
363
|
+
"@eslint-react/no-component-will-update": "error",
|
|
364
|
+
"@eslint-react/no-create-ref": "error",
|
|
365
|
+
"@eslint-react/no-forward-ref": "error",
|
|
366
|
+
"@eslint-react/dom/no-find-dom-node": "error",
|
|
367
|
+
"@eslint-react/dom/no-hydrate": "error",
|
|
368
|
+
"@eslint-react/dom/no-render": "error",
|
|
369
|
+
"@eslint-react/dom/no-render-return-value": "error"
|
|
370
|
+
};
|
|
371
|
+
const plugins$3 = {
|
|
372
|
+
...plugins$7,
|
|
373
|
+
...plugins$8
|
|
374
|
+
};
|
|
353
375
|
|
|
354
376
|
//#endregion
|
|
355
377
|
//#region src/configs/off.ts
|
|
@@ -373,22 +395,22 @@ var recommended_exports = /* @__PURE__ */ __export({
|
|
|
373
395
|
});
|
|
374
396
|
const name$3 = "@eslint-react/recommended";
|
|
375
397
|
const rules$2 = {
|
|
376
|
-
...rules$
|
|
377
|
-
...rules$
|
|
378
|
-
...rules$
|
|
398
|
+
...rules$14,
|
|
399
|
+
...rules$9,
|
|
400
|
+
...rules$7,
|
|
379
401
|
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
380
402
|
"@eslint-react/naming-convention/context-name": "warn",
|
|
381
403
|
"@eslint-react/naming-convention/use-state": "warn"
|
|
382
404
|
};
|
|
383
405
|
const plugins$2 = {
|
|
384
|
-
...plugins$6,
|
|
385
406
|
...plugins$7,
|
|
386
|
-
...plugins$
|
|
407
|
+
...plugins$8,
|
|
408
|
+
...plugins$4,
|
|
387
409
|
"@eslint-react/debug": reactDebug,
|
|
388
410
|
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
389
411
|
"@eslint-react/naming-convention": reactNamingConvention
|
|
390
412
|
};
|
|
391
|
-
const settings$2 = { ...settings$
|
|
413
|
+
const settings$2 = { ...settings$5 };
|
|
392
414
|
|
|
393
415
|
//#endregion
|
|
394
416
|
//#region src/configs/recommended-typescript.ts
|
|
@@ -490,6 +512,7 @@ var src_default = {
|
|
|
490
512
|
["disable-type-checked"]: disable_type_checked_exports,
|
|
491
513
|
["disable-web-api"]: disable_web_api_exports,
|
|
492
514
|
["dom"]: dom_exports,
|
|
515
|
+
["no-deprecated"]: no_deprecated_exports,
|
|
493
516
|
["off"]: off_exports,
|
|
494
517
|
["recommended"]: recommended_exports,
|
|
495
518
|
["recommended-type-checked"]: recommended_type_checked_exports,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0-next.0",
|
|
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.46.0",
|
|
43
43
|
"@typescript-eslint/utils": "^8.46.0",
|
|
44
44
|
"ts-api-utils": "^2.1.0",
|
|
45
|
-
"@eslint-react/eff": "2.0
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"
|
|
48
|
-
"eslint-plugin-react-
|
|
49
|
-
"eslint-
|
|
50
|
-
"eslint-plugin-react-naming-convention": "2.0
|
|
51
|
-
"eslint-plugin-react-
|
|
52
|
-
"eslint-plugin-react-
|
|
53
|
-
"eslint-plugin-react-
|
|
45
|
+
"@eslint-react/eff": "2.1.0-next.0",
|
|
46
|
+
"@eslint-react/shared": "2.1.0-next.0",
|
|
47
|
+
"eslint-plugin-react-debug": "2.1.0-next.0",
|
|
48
|
+
"eslint-plugin-react-hooks-extra": "2.1.0-next.0",
|
|
49
|
+
"@eslint-react/kit": "2.1.0-next.0",
|
|
50
|
+
"eslint-plugin-react-naming-convention": "2.1.0-next.0",
|
|
51
|
+
"eslint-plugin-react-dom": "2.1.0-next.0",
|
|
52
|
+
"eslint-plugin-react-x": "2.1.0-next.0",
|
|
53
|
+
"eslint-plugin-react-web-api": "2.1.0-next.0"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"tsdown": "^0.15.6",
|