@eslint-react/eslint-plugin 1.21.1-next.0 → 1.22.0-beta.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 +1 -11
- package/dist/index.d.mts +70 -52
- package/dist/index.d.ts +70 -52
- package/dist/index.js +12 -12
- package/dist/index.mjs +12 -12
- package/package.json +11 -11
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __export = (target, all) => {
|
|
|
26
26
|
|
|
27
27
|
// package.json
|
|
28
28
|
var name = "@eslint-react/eslint-plugin";
|
|
29
|
-
var version = "1.
|
|
29
|
+
var version = "1.22.0-beta.0";
|
|
30
30
|
|
|
31
31
|
// src/configs/all.ts
|
|
32
32
|
var all_exports = {};
|
|
@@ -48,8 +48,6 @@ __export(core_exports, {
|
|
|
48
48
|
var name2 = "@eslint-react/core";
|
|
49
49
|
var rules = {
|
|
50
50
|
"@eslint-react/ensure-forward-ref-using-ref": "warn",
|
|
51
|
-
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
52
|
-
"@eslint-react/jsx-uses-vars": "warn",
|
|
53
51
|
"@eslint-react/no-access-state-in-setstate": "error",
|
|
54
52
|
"@eslint-react/no-array-index-key": "warn",
|
|
55
53
|
"@eslint-react/no-children-count": "warn",
|
|
@@ -66,6 +64,7 @@ var rules = {
|
|
|
66
64
|
"@eslint-react/no-create-ref": "error",
|
|
67
65
|
"@eslint-react/no-default-props": "error",
|
|
68
66
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
67
|
+
"@eslint-react/no-duplicate-jsx-props": "warn",
|
|
69
68
|
"@eslint-react/no-duplicate-key": "error",
|
|
70
69
|
"@eslint-react/no-forward-ref": "warn",
|
|
71
70
|
"@eslint-react/no-implicit-key": "warn",
|
|
@@ -83,7 +82,8 @@ var rules = {
|
|
|
83
82
|
"@eslint-react/no-unstable-context-value": "warn",
|
|
84
83
|
"@eslint-react/no-unstable-default-props": "warn",
|
|
85
84
|
"@eslint-react/no-unused-class-component-members": "warn",
|
|
86
|
-
"@eslint-react/no-unused-state": "warn"
|
|
85
|
+
"@eslint-react/no-unused-state": "warn",
|
|
86
|
+
"@eslint-react/use-jsx-vars": "warn"
|
|
87
87
|
};
|
|
88
88
|
var plugins = {
|
|
89
89
|
"@eslint-react": react__default.default
|
|
@@ -102,7 +102,7 @@ __export(dom_exports, {
|
|
|
102
102
|
});
|
|
103
103
|
var name3 = "@eslint-react/dom";
|
|
104
104
|
var rules2 = {
|
|
105
|
-
"@eslint-react/dom/no-
|
|
105
|
+
"@eslint-react/dom/no-void-elements-with-children": "warn",
|
|
106
106
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
107
107
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
108
108
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -127,8 +127,6 @@ var settings2 = {
|
|
|
127
127
|
var name4 = "@eslint-react/all";
|
|
128
128
|
var rules3 = {
|
|
129
129
|
"@eslint-react/ensure-forward-ref-using-ref": "warn",
|
|
130
|
-
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
131
|
-
"@eslint-react/jsx-uses-vars": "warn",
|
|
132
130
|
"@eslint-react/no-access-state-in-setstate": "error",
|
|
133
131
|
"@eslint-react/no-array-index-key": "warn",
|
|
134
132
|
"@eslint-react/no-children-count": "warn",
|
|
@@ -148,6 +146,7 @@ var rules3 = {
|
|
|
148
146
|
"@eslint-react/no-create-ref": "error",
|
|
149
147
|
"@eslint-react/no-default-props": "error",
|
|
150
148
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
149
|
+
"@eslint-react/no-duplicate-jsx-props": "warn",
|
|
151
150
|
"@eslint-react/no-duplicate-key": "error",
|
|
152
151
|
"@eslint-react/no-forward-ref": "warn",
|
|
153
152
|
"@eslint-react/no-implicit-key": "warn",
|
|
@@ -171,8 +170,8 @@ var rules3 = {
|
|
|
171
170
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
172
171
|
"@eslint-react/prefer-shorthand-boolean": "warn",
|
|
173
172
|
"@eslint-react/prefer-shorthand-fragment": "warn",
|
|
173
|
+
"@eslint-react/use-jsx-vars": "warn",
|
|
174
174
|
// Part: DOM
|
|
175
|
-
"@eslint-react/dom/no-children-in-void-dom-elements": "warn",
|
|
176
175
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
177
176
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
178
177
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -184,6 +183,7 @@ var rules3 = {
|
|
|
184
183
|
"@eslint-react/dom/no-unknown-property": "warn",
|
|
185
184
|
"@eslint-react/dom/no-unsafe-iframe-sandbox": "warn",
|
|
186
185
|
"@eslint-react/dom/no-unsafe-target-blank": "warn",
|
|
186
|
+
"@eslint-react/dom/no-void-elements-with-children": "warn",
|
|
187
187
|
// Part: Web API
|
|
188
188
|
"@eslint-react/web-api/no-leaked-event-listener": "warn",
|
|
189
189
|
"@eslint-react/web-api/no-leaked-interval": "warn",
|
|
@@ -344,8 +344,8 @@ var name12 = "@eslint-react/recommended-typescript";
|
|
|
344
344
|
var rules12 = {
|
|
345
345
|
...rules11,
|
|
346
346
|
"@eslint-react/dom/no-unknown-property": "off",
|
|
347
|
-
"@eslint-react/
|
|
348
|
-
"@eslint-react/jsx-
|
|
347
|
+
"@eslint-react/no-duplicate-jsx-props": "off",
|
|
348
|
+
"@eslint-react/use-jsx-vars": "off"
|
|
349
349
|
};
|
|
350
350
|
var plugins7 = {
|
|
351
351
|
...plugins6
|
|
@@ -389,7 +389,7 @@ function makeLegacyConfig(config) {
|
|
|
389
389
|
plugins: ["@eslint-react"]
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
|
-
var
|
|
392
|
+
var index_default = {
|
|
393
393
|
meta: {
|
|
394
394
|
name,
|
|
395
395
|
version
|
|
@@ -436,4 +436,4 @@ var src_default = {
|
|
|
436
436
|
}
|
|
437
437
|
};
|
|
438
438
|
|
|
439
|
-
module.exports =
|
|
439
|
+
module.exports = index_default;
|
package/dist/index.mjs
CHANGED
|
@@ -15,7 +15,7 @@ var __export = (target, all) => {
|
|
|
15
15
|
|
|
16
16
|
// package.json
|
|
17
17
|
var name = "@eslint-react/eslint-plugin";
|
|
18
|
-
var version = "1.
|
|
18
|
+
var version = "1.22.0-beta.0";
|
|
19
19
|
|
|
20
20
|
// src/configs/all.ts
|
|
21
21
|
var all_exports = {};
|
|
@@ -37,8 +37,6 @@ __export(core_exports, {
|
|
|
37
37
|
var name2 = "@eslint-react/core";
|
|
38
38
|
var rules = {
|
|
39
39
|
"@eslint-react/ensure-forward-ref-using-ref": "warn",
|
|
40
|
-
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
41
|
-
"@eslint-react/jsx-uses-vars": "warn",
|
|
42
40
|
"@eslint-react/no-access-state-in-setstate": "error",
|
|
43
41
|
"@eslint-react/no-array-index-key": "warn",
|
|
44
42
|
"@eslint-react/no-children-count": "warn",
|
|
@@ -55,6 +53,7 @@ var rules = {
|
|
|
55
53
|
"@eslint-react/no-create-ref": "error",
|
|
56
54
|
"@eslint-react/no-default-props": "error",
|
|
57
55
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
56
|
+
"@eslint-react/no-duplicate-jsx-props": "warn",
|
|
58
57
|
"@eslint-react/no-duplicate-key": "error",
|
|
59
58
|
"@eslint-react/no-forward-ref": "warn",
|
|
60
59
|
"@eslint-react/no-implicit-key": "warn",
|
|
@@ -72,7 +71,8 @@ var rules = {
|
|
|
72
71
|
"@eslint-react/no-unstable-context-value": "warn",
|
|
73
72
|
"@eslint-react/no-unstable-default-props": "warn",
|
|
74
73
|
"@eslint-react/no-unused-class-component-members": "warn",
|
|
75
|
-
"@eslint-react/no-unused-state": "warn"
|
|
74
|
+
"@eslint-react/no-unused-state": "warn",
|
|
75
|
+
"@eslint-react/use-jsx-vars": "warn"
|
|
76
76
|
};
|
|
77
77
|
var plugins = {
|
|
78
78
|
"@eslint-react": react
|
|
@@ -91,7 +91,7 @@ __export(dom_exports, {
|
|
|
91
91
|
});
|
|
92
92
|
var name3 = "@eslint-react/dom";
|
|
93
93
|
var rules2 = {
|
|
94
|
-
"@eslint-react/dom/no-
|
|
94
|
+
"@eslint-react/dom/no-void-elements-with-children": "warn",
|
|
95
95
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
96
96
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
97
97
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -116,8 +116,6 @@ var settings2 = {
|
|
|
116
116
|
var name4 = "@eslint-react/all";
|
|
117
117
|
var rules3 = {
|
|
118
118
|
"@eslint-react/ensure-forward-ref-using-ref": "warn",
|
|
119
|
-
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
120
|
-
"@eslint-react/jsx-uses-vars": "warn",
|
|
121
119
|
"@eslint-react/no-access-state-in-setstate": "error",
|
|
122
120
|
"@eslint-react/no-array-index-key": "warn",
|
|
123
121
|
"@eslint-react/no-children-count": "warn",
|
|
@@ -137,6 +135,7 @@ var rules3 = {
|
|
|
137
135
|
"@eslint-react/no-create-ref": "error",
|
|
138
136
|
"@eslint-react/no-default-props": "error",
|
|
139
137
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
138
|
+
"@eslint-react/no-duplicate-jsx-props": "warn",
|
|
140
139
|
"@eslint-react/no-duplicate-key": "error",
|
|
141
140
|
"@eslint-react/no-forward-ref": "warn",
|
|
142
141
|
"@eslint-react/no-implicit-key": "warn",
|
|
@@ -160,8 +159,8 @@ var rules3 = {
|
|
|
160
159
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
161
160
|
"@eslint-react/prefer-shorthand-boolean": "warn",
|
|
162
161
|
"@eslint-react/prefer-shorthand-fragment": "warn",
|
|
162
|
+
"@eslint-react/use-jsx-vars": "warn",
|
|
163
163
|
// Part: DOM
|
|
164
|
-
"@eslint-react/dom/no-children-in-void-dom-elements": "warn",
|
|
165
164
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
166
165
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
167
166
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -173,6 +172,7 @@ var rules3 = {
|
|
|
173
172
|
"@eslint-react/dom/no-unknown-property": "warn",
|
|
174
173
|
"@eslint-react/dom/no-unsafe-iframe-sandbox": "warn",
|
|
175
174
|
"@eslint-react/dom/no-unsafe-target-blank": "warn",
|
|
175
|
+
"@eslint-react/dom/no-void-elements-with-children": "warn",
|
|
176
176
|
// Part: Web API
|
|
177
177
|
"@eslint-react/web-api/no-leaked-event-listener": "warn",
|
|
178
178
|
"@eslint-react/web-api/no-leaked-interval": "warn",
|
|
@@ -333,8 +333,8 @@ var name12 = "@eslint-react/recommended-typescript";
|
|
|
333
333
|
var rules12 = {
|
|
334
334
|
...rules11,
|
|
335
335
|
"@eslint-react/dom/no-unknown-property": "off",
|
|
336
|
-
"@eslint-react/
|
|
337
|
-
"@eslint-react/jsx-
|
|
336
|
+
"@eslint-react/no-duplicate-jsx-props": "off",
|
|
337
|
+
"@eslint-react/use-jsx-vars": "off"
|
|
338
338
|
};
|
|
339
339
|
var plugins7 = {
|
|
340
340
|
...plugins6
|
|
@@ -378,7 +378,7 @@ function makeLegacyConfig(config) {
|
|
|
378
378
|
plugins: ["@eslint-react"]
|
|
379
379
|
};
|
|
380
380
|
}
|
|
381
|
-
var
|
|
381
|
+
var index_default = {
|
|
382
382
|
meta: {
|
|
383
383
|
name,
|
|
384
384
|
version
|
|
@@ -425,4 +425,4 @@ var src_default = {
|
|
|
425
425
|
}
|
|
426
426
|
};
|
|
427
427
|
|
|
428
|
-
export {
|
|
428
|
+
export { index_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0-beta.0",
|
|
4
4
|
"description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"module": "dist/index.mjs",
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"files": [
|
|
45
|
-
"
|
|
45
|
+
"dist",
|
|
46
46
|
"./package.json"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
@@ -50,15 +50,15 @@
|
|
|
50
50
|
"@typescript-eslint/type-utils": "^8.18.1",
|
|
51
51
|
"@typescript-eslint/types": "^8.18.1",
|
|
52
52
|
"@typescript-eslint/utils": "^8.18.1",
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/types": "1.
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-
|
|
58
|
-
"eslint-plugin-react-hooks-extra": "1.
|
|
59
|
-
"eslint-plugin-react-
|
|
60
|
-
"eslint-plugin-react-
|
|
61
|
-
"eslint-plugin-react-
|
|
53
|
+
"@eslint-react/eff": "1.22.0-beta.0",
|
|
54
|
+
"@eslint-react/shared": "1.22.0-beta.0",
|
|
55
|
+
"@eslint-react/types": "1.22.0-beta.0",
|
|
56
|
+
"eslint-plugin-react-debug": "1.22.0-beta.0",
|
|
57
|
+
"eslint-plugin-react-dom": "1.22.0-beta.0",
|
|
58
|
+
"eslint-plugin-react-hooks-extra": "1.22.0-beta.0",
|
|
59
|
+
"eslint-plugin-react-web-api": "1.22.0-beta.0",
|
|
60
|
+
"eslint-plugin-react-naming-convention": "1.22.0-beta.0",
|
|
61
|
+
"eslint-plugin-react-x": "1.22.0-beta.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"tsup": "^8.3.5",
|