@eslint-react/eslint-plugin 2.14.0-next.0 → 3.0.0-beta.1

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.
Files changed (3) hide show
  1. package/README.md +0 -1
  2. package/dist/index.js +15 -13
  3. package/package.json +14 -14
package/README.md CHANGED
@@ -52,7 +52,6 @@
52
52
  - [`eslint-plugin-react-rsc`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-rsc) - Rules for React Server Components.
53
53
  - [`eslint-plugin-react-dom`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) - DOM-specific rules for React DOM.
54
54
  - [`eslint-plugin-react-web-api`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-web-api) - Rules for interacting with Web APIs.
55
- - [`eslint-plugin-react-hooks-extra`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-hooks-extra) - Extra React Hooks rules.
56
55
  - [`eslint-plugin-react-naming-convention`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
57
56
 
58
57
  > [!NOTE]\
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import react from "eslint-plugin-react-x";
2
- import reactHooksExtra from "eslint-plugin-react-hooks-extra";
3
2
  import reactNamingConvention from "eslint-plugin-react-naming-convention";
4
3
  import reactWebApi from "eslint-plugin-react-web-api";
5
4
  import reactDom from "eslint-plugin-react-dom";
@@ -25,7 +24,7 @@ var __exportAll = (all, no_symbols) => {
25
24
  //#endregion
26
25
  //#region package.json
27
26
  var name$19 = "@eslint-react/eslint-plugin";
28
- var version = "2.14.0-next.0";
27
+ var version = "3.0.0-beta.1";
29
28
 
30
29
  //#endregion
31
30
  //#region src/configs/dom.ts
@@ -72,6 +71,9 @@ var x_exports = /* @__PURE__ */ __exportAll({
72
71
  });
73
72
  const name$16 = "@eslint-react/x";
74
73
  const rules$17 = {
74
+ "@eslint-react/component-hook-factories": "error",
75
+ "@eslint-react/error-boundaries": "error",
76
+ "@eslint-react/exhaustive-deps": "warn",
75
77
  "@eslint-react/jsx-key-before-spread": "warn",
76
78
  "@eslint-react/jsx-no-comment-textnodes": "warn",
77
79
  "@eslint-react/jsx-no-duplicate-props": "warn",
@@ -90,18 +92,15 @@ const rules$17 = {
90
92
  "@eslint-react/no-component-will-update": "error",
91
93
  "@eslint-react/no-context-provider": "warn",
92
94
  "@eslint-react/no-create-ref": "error",
93
- "@eslint-react/no-default-props": "error",
94
95
  "@eslint-react/no-direct-mutation-state": "error",
95
96
  "@eslint-react/no-forward-ref": "warn",
96
97
  "@eslint-react/no-missing-key": "error",
97
98
  "@eslint-react/no-nested-component-definitions": "error",
98
99
  "@eslint-react/no-nested-lazy-component-declarations": "error",
99
- "@eslint-react/no-prop-types": "error",
100
100
  "@eslint-react/no-redundant-should-component-update": "error",
101
101
  "@eslint-react/no-set-state-in-component-did-mount": "warn",
102
102
  "@eslint-react/no-set-state-in-component-did-update": "warn",
103
103
  "@eslint-react/no-set-state-in-component-will-update": "warn",
104
- "@eslint-react/no-string-refs": "error",
105
104
  "@eslint-react/no-unnecessary-use-prefix": "warn",
106
105
  "@eslint-react/no-unsafe-component-will-mount": "warn",
107
106
  "@eslint-react/no-unsafe-component-will-receive-props": "warn",
@@ -109,7 +108,11 @@ const rules$17 = {
109
108
  "@eslint-react/no-unused-class-component-members": "warn",
110
109
  "@eslint-react/no-use-context": "warn",
111
110
  "@eslint-react/no-useless-forward-ref": "warn",
112
- "@eslint-react/prefer-use-state-lazy-initialization": "warn"
111
+ "@eslint-react/prefer-use-state-lazy-initialization": "warn",
112
+ "@eslint-react/purity": "warn",
113
+ "@eslint-react/rules-of-hooks": "error",
114
+ "@eslint-react/set-state-in-effect": "warn",
115
+ "@eslint-react/set-state-in-render": "error"
113
116
  };
114
117
  const plugins$9 = { "@eslint-react": react };
115
118
  const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
@@ -124,6 +127,9 @@ var all_exports = /* @__PURE__ */ __exportAll({
124
127
  });
125
128
  const name$15 = "@eslint-react/all";
126
129
  const rules$16 = {
130
+ "@eslint-react/component-hook-factories": "error",
131
+ "@eslint-react/error-boundaries": "error",
132
+ "@eslint-react/exhaustive-deps": "warn",
127
133
  "@eslint-react/jsx-dollar": "warn",
128
134
  "@eslint-react/jsx-key-before-spread": "warn",
129
135
  "@eslint-react/jsx-no-comment-textnodes": "warn",
@@ -162,7 +168,6 @@ const rules$16 = {
162
168
  "@eslint-react/no-set-state-in-component-did-mount": "warn",
163
169
  "@eslint-react/no-set-state-in-component-did-update": "warn",
164
170
  "@eslint-react/no-set-state-in-component-will-update": "warn",
165
- "@eslint-react/no-unnecessary-key": "warn",
166
171
  "@eslint-react/no-unnecessary-use-callback": "warn",
167
172
  "@eslint-react/no-unnecessary-use-memo": "warn",
168
173
  "@eslint-react/no-unnecessary-use-prefix": "warn",
@@ -179,6 +184,9 @@ const rules$16 = {
179
184
  "@eslint-react/prefer-destructuring-assignment": "warn",
180
185
  "@eslint-react/prefer-namespace-import": "warn",
181
186
  "@eslint-react/prefer-use-state-lazy-initialization": "warn",
187
+ "@eslint-react/purity": "warn",
188
+ "@eslint-react/rules-of-hooks": "error",
189
+ "@eslint-react/set-state-in-effect": "warn",
182
190
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
183
191
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
184
192
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -202,7 +210,6 @@ const rules$16 = {
202
210
  "@eslint-react/web-api/no-leaked-interval": "warn",
203
211
  "@eslint-react/web-api/no-leaked-resize-observer": "warn",
204
212
  "@eslint-react/web-api/no-leaked-timeout": "warn",
205
- "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
206
213
  "@eslint-react/naming-convention/component-name": "warn",
207
214
  "@eslint-react/naming-convention/context-name": "warn",
208
215
  "@eslint-react/naming-convention/id-name": "warn",
@@ -213,7 +220,6 @@ const plugins$8 = {
213
220
  ...plugins$9,
214
221
  ...plugins$10,
215
222
  ...plugins$11,
216
- "@eslint-react/hooks-extra": reactHooksExtra,
217
223
  "@eslint-react/naming-convention": reactNamingConvention,
218
224
  "@eslint-react/web-api": reactWebApi
219
225
  };
@@ -298,10 +304,8 @@ const rules$13 = {
298
304
  "@eslint-react/no-duplicate-key": "off",
299
305
  "@eslint-react/no-implicit-key": "off",
300
306
  "@eslint-react/no-misused-capture-owner-stack": "off",
301
- "@eslint-react/no-unnecessary-key": "off",
302
307
  "@eslint-react/no-unnecessary-use-callback": "off",
303
308
  "@eslint-react/no-unnecessary-use-memo": "off",
304
- "@eslint-react/no-unnecessary-use-ref": "off",
305
309
  "@eslint-react/no-unused-props": "off",
306
310
  "@eslint-react/prefer-read-only-props": "off",
307
311
  "@eslint-react/rsc/function-definition": "off"
@@ -407,7 +411,6 @@ const rules$6 = {
407
411
  ...rules$18,
408
412
  ...rules$19,
409
413
  ...rules$10,
410
- "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
411
414
  "@eslint-react/naming-convention/context-name": "warn",
412
415
  "@eslint-react/naming-convention/id-name": "warn",
413
416
  "@eslint-react/naming-convention/ref-name": "warn",
@@ -418,7 +421,6 @@ const plugins$5 = {
418
421
  ...plugins$10,
419
422
  ...plugins$11,
420
423
  ...plugins$7,
421
- "@eslint-react/hooks-extra": reactHooksExtra,
422
424
  "@eslint-react/naming-convention": reactNamingConvention
423
425
  };
424
426
  const settings$5 = { ...settings$8 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "2.14.0-next.0",
3
+ "version": "3.0.0-beta.1",
4
4
  "description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
5
5
  "keywords": [
6
6
  "react",
@@ -8,6 +8,7 @@
8
8
  "eslint-react",
9
9
  "eslint-plugin",
10
10
  "eslint-plugin-react-x",
11
+ "eslint-plugin-react-rsc",
11
12
  "eslint-plugin-react-dom",
12
13
  "eslint-plugin-react-web-api",
13
14
  "eslint-plugin-react-naming-convention"
@@ -40,19 +41,18 @@
40
41
  "./package.json"
41
42
  ],
42
43
  "dependencies": {
43
- "@typescript-eslint/scope-manager": "^8.55.0",
44
- "@typescript-eslint/type-utils": "^8.55.0",
45
- "@typescript-eslint/types": "^8.55.0",
46
- "@typescript-eslint/utils": "^8.55.0",
44
+ "@typescript-eslint/scope-manager": "^8.56.0",
45
+ "@typescript-eslint/type-utils": "^8.56.0",
46
+ "@typescript-eslint/types": "^8.56.0",
47
+ "@typescript-eslint/utils": "^8.56.0",
47
48
  "ts-api-utils": "^2.4.0",
48
- "@eslint-react/eff": "2.14.0-next.0",
49
- "@eslint-react/shared": "2.14.0-next.0",
50
- "eslint-plugin-react-hooks-extra": "2.14.0-next.0",
51
- "eslint-plugin-react-dom": "2.14.0-next.0",
52
- "eslint-plugin-react-rsc": "2.14.0-next.0",
53
- "eslint-plugin-react-web-api": "2.14.0-next.0",
54
- "eslint-plugin-react-x": "2.14.0-next.0",
55
- "eslint-plugin-react-naming-convention": "2.14.0-next.0"
49
+ "@eslint-react/eff": "3.0.0-beta.1",
50
+ "eslint-plugin-react-dom": "3.0.0-beta.1",
51
+ "eslint-plugin-react-naming-convention": "3.0.0-beta.1",
52
+ "eslint-plugin-react-x": "3.0.0-beta.1",
53
+ "@eslint-react/shared": "3.0.0-beta.1",
54
+ "eslint-plugin-react-web-api": "3.0.0-beta.1",
55
+ "eslint-plugin-react-rsc": "3.0.0-beta.1"
56
56
  },
57
57
  "devDependencies": {
58
58
  "tsdown": "^0.20.3",
@@ -63,7 +63,7 @@
63
63
  "typescript": ">=4.8.4 <6.0.0"
64
64
  },
65
65
  "engines": {
66
- "node": ">=20.19.0"
66
+ "node": ">=22.0.0"
67
67
  },
68
68
  "publishConfig": {
69
69
  "access": "public"