@eslint-react/eslint-plugin 2.0.0-next.3 → 2.0.0-next.5

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