@eslint-react/eslint-plugin 2.0.0-next.2 → 2.0.0-next.21

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
@@ -1,6 +1,5 @@
1
1
  import reactDebug from 'eslint-plugin-react-debug';
2
2
  import reactDom from 'eslint-plugin-react-dom';
3
- import reactHooksExtra from 'eslint-plugin-react-hooks-extra';
4
3
  import reactNamingConvention from 'eslint-plugin-react-naming-convention';
5
4
  import reactWebApi from 'eslint-plugin-react-web-api';
6
5
  import react from 'eslint-plugin-react-x';
@@ -14,7 +13,7 @@ var __export = (target, all) => {
14
13
 
15
14
  // package.json
16
15
  var name = "@eslint-react/eslint-plugin";
17
- var version = "2.0.0-next.2";
16
+ var version = "2.0.0-next.21";
18
17
 
19
18
  // src/configs/all.ts
20
19
  var all_exports = {};
@@ -68,11 +67,10 @@ __export(x_exports, {
68
67
  });
69
68
  var name3 = "@eslint-react/x";
70
69
  var rules2 = {
70
+ "@eslint-react/jsx-key-before-spread": "warn",
71
71
  "@eslint-react/jsx-no-comment-textnodes": "warn",
72
72
  "@eslint-react/jsx-no-duplicate-props": "warn",
73
73
  // "@eslint-react/jsx-no-undef": "error",
74
- // "@eslint-react/jsx-shorthand-boolean": "warn",
75
- // "@eslint-react/jsx-shorthand-fragment": "warn",
76
74
  "@eslint-react/jsx-uses-react": "warn",
77
75
  "@eslint-react/jsx-uses-vars": "warn",
78
76
  "@eslint-react/no-access-state-in-setstate": "error",
@@ -92,6 +90,10 @@ var rules2 = {
92
90
  "@eslint-react/no-create-ref": "error",
93
91
  "@eslint-react/no-default-props": "error",
94
92
  "@eslint-react/no-direct-mutation-state": "error",
93
+ // "@eslint-react/prefer-destructuring-assignment": "warn",
94
+ // "@eslint-react/prefer-namespace-import": "warn",
95
+ // "@eslint-react/prefer-read-only-props": "error",
96
+ "@eslint-react/no-direct-set-state-in-use-effect": "warn",
95
97
  "@eslint-react/no-duplicate-key": "warn",
96
98
  "@eslint-react/no-forward-ref": "warn",
97
99
  "@eslint-react/no-implicit-key": "warn",
@@ -107,6 +109,7 @@ var rules2 = {
107
109
  "@eslint-react/no-set-state-in-component-did-update": "warn",
108
110
  "@eslint-react/no-set-state-in-component-will-update": "warn",
109
111
  "@eslint-react/no-string-refs": "error",
112
+ "@eslint-react/no-unnecessary-use-prefix": "warn",
110
113
  "@eslint-react/no-unsafe-component-will-mount": "warn",
111
114
  "@eslint-react/no-unsafe-component-will-receive-props": "warn",
112
115
  "@eslint-react/no-unsafe-component-will-update": "warn",
@@ -115,11 +118,8 @@ var rules2 = {
115
118
  "@eslint-react/no-unused-class-component-members": "warn",
116
119
  "@eslint-react/no-unused-state": "warn",
117
120
  "@eslint-react/no-use-context": "warn",
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",
121
+ "@eslint-react/no-useless-forward-ref": "warn",
122
+ "@eslint-react/prefer-use-state-lazy-initialization": "warn"
123
123
  };
124
124
  var plugins2 = {
125
125
  "@eslint-react": react
@@ -134,8 +134,6 @@ var rules3 = {
134
134
  "@eslint-react/jsx-no-comment-textnodes": "warn",
135
135
  "@eslint-react/jsx-no-duplicate-props": "warn",
136
136
  "@eslint-react/jsx-no-undef": "error",
137
- "@eslint-react/jsx-shorthand-boolean": "warn",
138
- "@eslint-react/jsx-shorthand-fragment": "warn",
139
137
  "@eslint-react/jsx-uses-react": "warn",
140
138
  "@eslint-react/jsx-uses-vars": "warn",
141
139
  "@eslint-react/no-access-state-in-setstate": "error",
@@ -155,6 +153,8 @@ var rules3 = {
155
153
  "@eslint-react/no-create-ref": "error",
156
154
  "@eslint-react/no-default-props": "error",
157
155
  "@eslint-react/no-direct-mutation-state": "error",
156
+ "@eslint-react/no-direct-set-state-in-use-effect": "warn",
157
+ "@eslint-react/no-direct-set-state-in-use-layout-effect": "warn",
158
158
  "@eslint-react/no-duplicate-key": "warn",
159
159
  "@eslint-react/no-forward-ref": "warn",
160
160
  "@eslint-react/no-implicit-key": "warn",
@@ -170,6 +170,9 @@ var rules3 = {
170
170
  "@eslint-react/no-set-state-in-component-did-update": "warn",
171
171
  "@eslint-react/no-set-state-in-component-will-update": "warn",
172
172
  "@eslint-react/no-string-refs": "error",
173
+ "@eslint-react/no-unnecessary-use-callback": "warn",
174
+ "@eslint-react/no-unnecessary-use-memo": "warn",
175
+ "@eslint-react/no-unnecessary-use-prefix": "warn",
173
176
  "@eslint-react/no-unsafe-component-will-mount": "warn",
174
177
  "@eslint-react/no-unsafe-component-will-receive-props": "warn",
175
178
  "@eslint-react/no-unsafe-component-will-update": "warn",
@@ -179,9 +182,9 @@ var rules3 = {
179
182
  "@eslint-react/no-unused-state": "warn",
180
183
  "@eslint-react/no-use-context": "warn",
181
184
  "@eslint-react/no-useless-forward-ref": "warn",
182
- "@eslint-react/no-useless-fragment": "warn",
183
185
  "@eslint-react/prefer-destructuring-assignment": "warn",
184
186
  "@eslint-react/prefer-namespace-import": "warn",
187
+ "@eslint-react/prefer-use-state-lazy-initialization": "warn",
185
188
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
186
189
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
187
190
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -202,12 +205,6 @@ var rules3 = {
202
205
  "@eslint-react/web-api/no-leaked-interval": "warn",
203
206
  "@eslint-react/web-api/no-leaked-resize-observer": "warn",
204
207
  "@eslint-react/web-api/no-leaked-timeout": "warn",
205
- "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
206
- "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
207
- "@eslint-react/hooks-extra/no-unnecessary-use-callback": "warn",
208
- "@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn",
209
- "@eslint-react/hooks-extra/no-unnecessary-use-prefix": "warn",
210
- "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
211
208
  "@eslint-react/naming-convention/component-name": "warn",
212
209
  "@eslint-react/naming-convention/context-name": "warn",
213
210
  "@eslint-react/naming-convention/filename": "warn",
@@ -218,7 +215,6 @@ var plugins3 = {
218
215
  ...plugins2,
219
216
  ...plugins,
220
217
  "@eslint-react/debug": reactDebug,
221
- "@eslint-react/hooks-extra": reactHooksExtra,
222
218
  "@eslint-react/naming-convention": reactNamingConvention,
223
219
  "@eslint-react/web-api": reactWebApi
224
220
  };
@@ -320,9 +316,6 @@ var rules11 = {
320
316
  ...rules2,
321
317
  ...rules,
322
318
  ...rules8,
323
- "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
324
- "@eslint-react/hooks-extra/no-unnecessary-use-prefix": "warn",
325
- "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
326
319
  "@eslint-react/naming-convention/context-name": "warn"
327
320
  // "@eslint-react/naming-convention/use-state": "warn",
328
321
  };
@@ -331,7 +324,6 @@ var plugins6 = {
331
324
  ...plugins,
332
325
  ...plugins5,
333
326
  "@eslint-react/debug": reactDebug,
334
- "@eslint-react/hooks-extra": reactHooksExtra,
335
327
  "@eslint-react/naming-convention": reactNamingConvention
336
328
  };
337
329
  var settings5 = {
@@ -448,7 +440,6 @@ var index_default = {
448
440
  ...react.rules,
449
441
  ...padKeysLeft(reactDom.rules, "dom/"),
450
442
  ...padKeysLeft(reactWebApi.rules, "web-api/"),
451
- ...padKeysLeft(reactHooksExtra.rules, "hooks-extra/"),
452
443
  ...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
453
444
  ...padKeysLeft(reactDebug.rules, "debug/")
454
445
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "2.0.0-next.2",
3
+ "version": "2.0.0-next.21",
4
4
  "description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
5
5
  "keywords": [
6
6
  "react",
@@ -10,7 +10,6 @@
10
10
  "eslint-plugin-react-x",
11
11
  "eslint-plugin-react-dom",
12
12
  "eslint-plugin-react-web-api",
13
- "eslint-plugin-react-hooks-extra",
14
13
  "eslint-plugin-react-naming-convention"
15
14
  ],
16
15
  "homepage": "https://github.com/Rel1cx/eslint-react",
@@ -38,26 +37,25 @@
38
37
  "./package.json"
39
38
  ],
40
39
  "dependencies": {
41
- "@typescript-eslint/scope-manager": "^8.30.1",
42
- "@typescript-eslint/type-utils": "^8.30.1",
43
- "@typescript-eslint/types": "^8.30.1",
44
- "@typescript-eslint/utils": "^8.30.1",
45
- "@eslint-react/eff": "2.0.0-next.2",
46
- "@eslint-react/shared": "2.0.0-next.2",
47
- "eslint-plugin-react-debug": "2.0.0-next.2",
48
- "eslint-plugin-react-dom": "2.0.0-next.2",
49
- "eslint-plugin-react-naming-convention": "2.0.0-next.2",
50
- "@eslint-react/kit": "2.0.0-next.2",
51
- "eslint-plugin-react-hooks-extra": "2.0.0-next.2",
52
- "eslint-plugin-react-x": "2.0.0-next.2",
53
- "eslint-plugin-react-web-api": "2.0.0-next.2"
40
+ "@typescript-eslint/scope-manager": "^8.32.1",
41
+ "@typescript-eslint/type-utils": "^8.32.1",
42
+ "@typescript-eslint/types": "^8.32.1",
43
+ "@typescript-eslint/utils": "^8.32.1",
44
+ "@eslint-react/eff": "2.0.0-next.21",
45
+ "@eslint-react/kit": "2.0.0-next.21",
46
+ "@eslint-react/shared": "2.0.0-next.21",
47
+ "eslint-plugin-react-dom": "2.0.0-next.21",
48
+ "eslint-plugin-react-debug": "2.0.0-next.21",
49
+ "eslint-plugin-react-naming-convention": "2.0.0-next.21",
50
+ "eslint-plugin-react-web-api": "2.0.0-next.21",
51
+ "eslint-plugin-react-x": "2.0.0-next.21"
54
52
  },
55
53
  "devDependencies": {
56
- "tsup": "^8.4.0",
54
+ "tsup": "^8.5.0",
57
55
  "@local/configs": "0.0.0"
58
56
  },
59
57
  "peerDependencies": {
60
- "eslint": "^9.24.0",
58
+ "eslint": "^9.26.0",
61
59
  "typescript": "^4.9.5 || ^5.4.5"
62
60
  },
63
61
  "peerDependenciesMeta": {