@eslint-react/eslint-plugin 1.48.3-next.1 → 2.0.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/dist/index.js CHANGED
@@ -25,7 +25,7 @@ var __export = (target, all) => {
25
25
 
26
26
  // package.json
27
27
  var name = "@eslint-react/eslint-plugin";
28
- var version = "1.48.3-next.1";
28
+ var version = "2.0.0-next.0";
29
29
 
30
30
  // src/configs/all.ts
31
31
  var all_exports = {};
@@ -79,7 +79,11 @@ __export(x_exports, {
79
79
  });
80
80
  var name3 = "@eslint-react/x";
81
81
  var rules2 = {
82
+ "@eslint-react/jsx-no-comment-textnodes": "warn",
82
83
  "@eslint-react/jsx-no-duplicate-props": "warn",
84
+ // "@eslint-react/jsx-no-undef": "error",
85
+ // "@eslint-react/jsx-shorthand-boolean": "warn",
86
+ // "@eslint-react/jsx-shorthand-fragment": "warn",
83
87
  "@eslint-react/jsx-uses-react": "warn",
84
88
  "@eslint-react/jsx-uses-vars": "warn",
85
89
  "@eslint-react/no-access-state-in-setstate": "error",
@@ -88,9 +92,10 @@ var rules2 = {
88
92
  "@eslint-react/no-children-for-each": "warn",
89
93
  "@eslint-react/no-children-map": "warn",
90
94
  "@eslint-react/no-children-only": "warn",
95
+ // "@eslint-react/no-children-prop": "warn",
91
96
  "@eslint-react/no-children-to-array": "warn",
97
+ // "@eslint-react/no-class-component": "warn",
92
98
  "@eslint-react/no-clone-element": "warn",
93
- "@eslint-react/no-comment-textnodes": "warn",
94
99
  "@eslint-react/no-component-will-mount": "error",
95
100
  "@eslint-react/no-component-will-receive-props": "error",
96
101
  "@eslint-react/no-component-will-update": "error",
@@ -101,8 +106,10 @@ var rules2 = {
101
106
  "@eslint-react/no-duplicate-key": "warn",
102
107
  "@eslint-react/no-forward-ref": "warn",
103
108
  "@eslint-react/no-implicit-key": "warn",
109
+ // "@eslint-react/no-missing-component-display-name": "warn",
110
+ // "@eslint-react/no-missing-context-display-name": "warn",
104
111
  "@eslint-react/no-missing-key": "error",
105
- "@eslint-react/no-misused-capture-owner-stack": "error",
112
+ // "@eslint-react/no-misused-capture-owner-stack": "error",
106
113
  "@eslint-react/no-nested-component-definitions": "error",
107
114
  "@eslint-react/no-nested-lazy-component-declarations": "warn",
108
115
  "@eslint-react/no-prop-types": "error",
@@ -120,6 +127,10 @@ var rules2 = {
120
127
  "@eslint-react/no-unused-state": "warn",
121
128
  "@eslint-react/no-use-context": "warn",
122
129
  "@eslint-react/no-useless-forward-ref": "warn"
130
+ // "@eslint-react/no-useless-fragment": "warn",
131
+ // "@eslint-react/prefer-destructuring-assignment": "warn",
132
+ // "@eslint-react/prefer-namespace-import": "warn",
133
+ // "@eslint-react/prefer-read-only-props": "error",
123
134
  };
124
135
  var plugins2 = {
125
136
  "@eslint-react": react__default.default
@@ -131,10 +142,11 @@ var settings2 = {
131
142
  // src/configs/all.ts
132
143
  var name4 = "@eslint-react/all";
133
144
  var rules3 = {
134
- "@eslint-react/avoid-shorthand-boolean": "warn",
135
- "@eslint-react/avoid-shorthand-fragment": "warn",
145
+ "@eslint-react/jsx-no-comment-textnodes": "warn",
136
146
  "@eslint-react/jsx-no-duplicate-props": "warn",
137
147
  "@eslint-react/jsx-no-undef": "error",
148
+ "@eslint-react/jsx-shorthand-boolean": "warn",
149
+ "@eslint-react/jsx-shorthand-fragment": "warn",
138
150
  "@eslint-react/jsx-uses-react": "warn",
139
151
  "@eslint-react/jsx-uses-vars": "warn",
140
152
  "@eslint-react/no-access-state-in-setstate": "error",
@@ -147,8 +159,6 @@ var rules3 = {
147
159
  "@eslint-react/no-children-to-array": "warn",
148
160
  "@eslint-react/no-class-component": "warn",
149
161
  "@eslint-react/no-clone-element": "warn",
150
- "@eslint-react/no-comment-textnodes": "warn",
151
- "@eslint-react/no-complex-conditional-rendering": "warn",
152
162
  "@eslint-react/no-component-will-mount": "error",
153
163
  "@eslint-react/no-component-will-receive-props": "error",
154
164
  "@eslint-react/no-component-will-update": "error",
@@ -159,7 +169,6 @@ var rules3 = {
159
169
  "@eslint-react/no-duplicate-key": "warn",
160
170
  "@eslint-react/no-forward-ref": "warn",
161
171
  "@eslint-react/no-implicit-key": "warn",
162
- // "@eslint-react/no-leaked-conditional-rendering": "warn",
163
172
  "@eslint-react/no-missing-component-display-name": "warn",
164
173
  "@eslint-react/no-missing-context-display-name": "warn",
165
174
  "@eslint-react/no-missing-key": "error",
@@ -183,10 +192,7 @@ var rules3 = {
183
192
  "@eslint-react/no-useless-forward-ref": "warn",
184
193
  "@eslint-react/no-useless-fragment": "warn",
185
194
  "@eslint-react/prefer-destructuring-assignment": "warn",
186
- "@eslint-react/prefer-react-namespace-import": "warn",
187
- // "@eslint-react/prefer-read-only-props": "warn",
188
- "@eslint-react/prefer-shorthand-boolean": "off",
189
- "@eslint-react/prefer-shorthand-fragment": "off",
195
+ "@eslint-react/prefer-namespace-import": "warn",
190
196
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
191
197
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
192
198
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -447,16 +453,7 @@ var index_default = {
447
453
  ["recommended-typescript"]: recommended_typescript_exports,
448
454
  ["recommended-typescript-legacy"]: toLegacyConfig(recommended_typescript_exports),
449
455
  ["x"]: x_exports,
450
- ["x-legacy"]: toLegacyConfig(x_exports),
451
- // Part: deprecated presets
452
- /** @deprecated Use `x` instead */
453
- ["core"]: x_exports,
454
- /** @deprecated Use `x-legacy` instead */
455
- ["core-legacy"]: toLegacyConfig(x_exports),
456
- /** @deprecated Use `disable-dom` instead */
457
- ["off-dom"]: disable_dom_exports,
458
- /** @deprecated Use `disable-dom-legacy` instead */
459
- ["off-dom-legacy"]: toLegacyConfig(disable_dom_exports)
456
+ ["x-legacy"]: toLegacyConfig(x_exports)
460
457
  },
461
458
  rules: {
462
459
  ...react__default.default.rules,
package/dist/index.mjs CHANGED
@@ -14,7 +14,7 @@ var __export = (target, all) => {
14
14
 
15
15
  // package.json
16
16
  var name = "@eslint-react/eslint-plugin";
17
- var version = "1.48.3-next.1";
17
+ var version = "2.0.0-next.0";
18
18
 
19
19
  // src/configs/all.ts
20
20
  var all_exports = {};
@@ -68,7 +68,11 @@ __export(x_exports, {
68
68
  });
69
69
  var name3 = "@eslint-react/x";
70
70
  var rules2 = {
71
+ "@eslint-react/jsx-no-comment-textnodes": "warn",
71
72
  "@eslint-react/jsx-no-duplicate-props": "warn",
73
+ // "@eslint-react/jsx-no-undef": "error",
74
+ // "@eslint-react/jsx-shorthand-boolean": "warn",
75
+ // "@eslint-react/jsx-shorthand-fragment": "warn",
72
76
  "@eslint-react/jsx-uses-react": "warn",
73
77
  "@eslint-react/jsx-uses-vars": "warn",
74
78
  "@eslint-react/no-access-state-in-setstate": "error",
@@ -77,9 +81,10 @@ var rules2 = {
77
81
  "@eslint-react/no-children-for-each": "warn",
78
82
  "@eslint-react/no-children-map": "warn",
79
83
  "@eslint-react/no-children-only": "warn",
84
+ // "@eslint-react/no-children-prop": "warn",
80
85
  "@eslint-react/no-children-to-array": "warn",
86
+ // "@eslint-react/no-class-component": "warn",
81
87
  "@eslint-react/no-clone-element": "warn",
82
- "@eslint-react/no-comment-textnodes": "warn",
83
88
  "@eslint-react/no-component-will-mount": "error",
84
89
  "@eslint-react/no-component-will-receive-props": "error",
85
90
  "@eslint-react/no-component-will-update": "error",
@@ -90,8 +95,10 @@ var rules2 = {
90
95
  "@eslint-react/no-duplicate-key": "warn",
91
96
  "@eslint-react/no-forward-ref": "warn",
92
97
  "@eslint-react/no-implicit-key": "warn",
98
+ // "@eslint-react/no-missing-component-display-name": "warn",
99
+ // "@eslint-react/no-missing-context-display-name": "warn",
93
100
  "@eslint-react/no-missing-key": "error",
94
- "@eslint-react/no-misused-capture-owner-stack": "error",
101
+ // "@eslint-react/no-misused-capture-owner-stack": "error",
95
102
  "@eslint-react/no-nested-component-definitions": "error",
96
103
  "@eslint-react/no-nested-lazy-component-declarations": "warn",
97
104
  "@eslint-react/no-prop-types": "error",
@@ -109,6 +116,10 @@ var rules2 = {
109
116
  "@eslint-react/no-unused-state": "warn",
110
117
  "@eslint-react/no-use-context": "warn",
111
118
  "@eslint-react/no-useless-forward-ref": "warn"
119
+ // "@eslint-react/no-useless-fragment": "warn",
120
+ // "@eslint-react/prefer-destructuring-assignment": "warn",
121
+ // "@eslint-react/prefer-namespace-import": "warn",
122
+ // "@eslint-react/prefer-read-only-props": "error",
112
123
  };
113
124
  var plugins2 = {
114
125
  "@eslint-react": react
@@ -120,10 +131,11 @@ var settings2 = {
120
131
  // src/configs/all.ts
121
132
  var name4 = "@eslint-react/all";
122
133
  var rules3 = {
123
- "@eslint-react/avoid-shorthand-boolean": "warn",
124
- "@eslint-react/avoid-shorthand-fragment": "warn",
134
+ "@eslint-react/jsx-no-comment-textnodes": "warn",
125
135
  "@eslint-react/jsx-no-duplicate-props": "warn",
126
136
  "@eslint-react/jsx-no-undef": "error",
137
+ "@eslint-react/jsx-shorthand-boolean": "warn",
138
+ "@eslint-react/jsx-shorthand-fragment": "warn",
127
139
  "@eslint-react/jsx-uses-react": "warn",
128
140
  "@eslint-react/jsx-uses-vars": "warn",
129
141
  "@eslint-react/no-access-state-in-setstate": "error",
@@ -136,8 +148,6 @@ var rules3 = {
136
148
  "@eslint-react/no-children-to-array": "warn",
137
149
  "@eslint-react/no-class-component": "warn",
138
150
  "@eslint-react/no-clone-element": "warn",
139
- "@eslint-react/no-comment-textnodes": "warn",
140
- "@eslint-react/no-complex-conditional-rendering": "warn",
141
151
  "@eslint-react/no-component-will-mount": "error",
142
152
  "@eslint-react/no-component-will-receive-props": "error",
143
153
  "@eslint-react/no-component-will-update": "error",
@@ -148,7 +158,6 @@ var rules3 = {
148
158
  "@eslint-react/no-duplicate-key": "warn",
149
159
  "@eslint-react/no-forward-ref": "warn",
150
160
  "@eslint-react/no-implicit-key": "warn",
151
- // "@eslint-react/no-leaked-conditional-rendering": "warn",
152
161
  "@eslint-react/no-missing-component-display-name": "warn",
153
162
  "@eslint-react/no-missing-context-display-name": "warn",
154
163
  "@eslint-react/no-missing-key": "error",
@@ -172,10 +181,7 @@ var rules3 = {
172
181
  "@eslint-react/no-useless-forward-ref": "warn",
173
182
  "@eslint-react/no-useless-fragment": "warn",
174
183
  "@eslint-react/prefer-destructuring-assignment": "warn",
175
- "@eslint-react/prefer-react-namespace-import": "warn",
176
- // "@eslint-react/prefer-read-only-props": "warn",
177
- "@eslint-react/prefer-shorthand-boolean": "off",
178
- "@eslint-react/prefer-shorthand-fragment": "off",
184
+ "@eslint-react/prefer-namespace-import": "warn",
179
185
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
180
186
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
181
187
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -436,16 +442,7 @@ var index_default = {
436
442
  ["recommended-typescript"]: recommended_typescript_exports,
437
443
  ["recommended-typescript-legacy"]: toLegacyConfig(recommended_typescript_exports),
438
444
  ["x"]: x_exports,
439
- ["x-legacy"]: toLegacyConfig(x_exports),
440
- // Part: deprecated presets
441
- /** @deprecated Use `x` instead */
442
- ["core"]: x_exports,
443
- /** @deprecated Use `x-legacy` instead */
444
- ["core-legacy"]: toLegacyConfig(x_exports),
445
- /** @deprecated Use `disable-dom` instead */
446
- ["off-dom"]: disable_dom_exports,
447
- /** @deprecated Use `disable-dom-legacy` instead */
448
- ["off-dom-legacy"]: toLegacyConfig(disable_dom_exports)
445
+ ["x-legacy"]: toLegacyConfig(x_exports)
449
446
  },
450
447
  rules: {
451
448
  ...react.rules,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "1.48.3-next.1",
3
+ "version": "2.0.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",
@@ -50,23 +50,23 @@
50
50
  "@typescript-eslint/type-utils": "^8.30.1",
51
51
  "@typescript-eslint/types": "^8.30.1",
52
52
  "@typescript-eslint/utils": "^8.30.1",
53
- "@eslint-react/eff": "1.48.3-next.1",
54
- "eslint-plugin-react-dom": "1.48.3-next.1",
55
- "eslint-plugin-react-debug": "1.48.3-next.1",
56
- "eslint-plugin-react-hooks-extra": "1.48.3-next.1",
57
- "@eslint-react/kit": "1.48.3-next.1",
58
- "eslint-plugin-react-web-api": "1.48.3-next.1",
59
- "eslint-plugin-react-naming-convention": "1.48.3-next.1",
60
- "eslint-plugin-react-x": "1.48.3-next.1",
61
- "@eslint-react/shared": "1.48.3-next.1"
53
+ "@eslint-react/eff": "2.0.0-next.0",
54
+ "@eslint-react/shared": "2.0.0-next.0",
55
+ "@eslint-react/kit": "2.0.0-next.0",
56
+ "eslint-plugin-react-dom": "2.0.0-next.0",
57
+ "eslint-plugin-react-hooks-extra": "2.0.0-next.0",
58
+ "eslint-plugin-react-web-api": "2.0.0-next.0",
59
+ "eslint-plugin-react-x": "2.0.0-next.0",
60
+ "eslint-plugin-react-debug": "2.0.0-next.0",
61
+ "eslint-plugin-react-naming-convention": "2.0.0-next.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "tsup": "^8.4.0",
65
65
  "@local/configs": "0.0.0"
66
66
  },
67
67
  "peerDependencies": {
68
- "eslint": "^8.57.0 || ^9.0.0",
69
- "typescript": "^4.9.5 || ^5.3.3"
68
+ "eslint": "^9.24.0",
69
+ "typescript": "^4.9.5 || ^5.4.5"
70
70
  },
71
71
  "peerDependenciesMeta": {
72
72
  "eslint": {
@@ -78,7 +78,7 @@
78
78
  },
79
79
  "engines": {
80
80
  "bun": ">=1.0.15",
81
- "node": ">=18.18.0"
81
+ "node": ">=20.19.0"
82
82
  },
83
83
  "publishConfig": {
84
84
  "access": "public"