@eslint-react/eslint-plugin 2.0.0-next.4 → 2.0.0-next.44

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
@@ -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 = "2.0.0-next.4";
17
+ var version = "2.0.0-next.44";
18
18
 
19
19
  // src/configs/all.ts
20
20
  var all_exports = {};
@@ -68,6 +68,7 @@ __export(x_exports, {
68
68
  });
69
69
  var name3 = "@eslint-react/x";
70
70
  var rules2 = {
71
+ "@eslint-react/jsx-key-before-spread": "warn",
71
72
  "@eslint-react/jsx-no-comment-textnodes": "warn",
72
73
  "@eslint-react/jsx-no-duplicate-props": "warn",
73
74
  // "@eslint-react/jsx-no-undef": "error",
@@ -90,6 +91,9 @@ var rules2 = {
90
91
  "@eslint-react/no-create-ref": "error",
91
92
  "@eslint-react/no-default-props": "error",
92
93
  "@eslint-react/no-direct-mutation-state": "error",
94
+ // "@eslint-react/prefer-destructuring-assignment": "warn",
95
+ // "@eslint-react/prefer-namespace-import": "warn",
96
+ // "@eslint-react/prefer-read-only-props": "error",
93
97
  "@eslint-react/no-duplicate-key": "warn",
94
98
  "@eslint-react/no-forward-ref": "warn",
95
99
  "@eslint-react/no-implicit-key": "warn",
@@ -105,6 +109,10 @@ var rules2 = {
105
109
  "@eslint-react/no-set-state-in-component-did-update": "warn",
106
110
  "@eslint-react/no-set-state-in-component-will-update": "warn",
107
111
  "@eslint-react/no-string-refs": "error",
112
+ // "@eslint-react/no-unnecessary-use-callback": "warn",
113
+ "@eslint-react/no-unnecessary-use-effect": "warn",
114
+ // "@eslint-react/no-unnecessary-use-memo": "warn",
115
+ "@eslint-react/no-unnecessary-use-prefix": "warn",
108
116
  "@eslint-react/no-unsafe-component-will-mount": "warn",
109
117
  "@eslint-react/no-unsafe-component-will-receive-props": "warn",
110
118
  "@eslint-react/no-unsafe-component-will-update": "warn",
@@ -113,10 +121,8 @@ var rules2 = {
113
121
  "@eslint-react/no-unused-class-component-members": "warn",
114
122
  "@eslint-react/no-unused-state": "warn",
115
123
  "@eslint-react/no-use-context": "warn",
116
- "@eslint-react/no-useless-forward-ref": "warn"
117
- // "@eslint-react/prefer-destructuring-assignment": "warn",
118
- // "@eslint-react/prefer-namespace-import": "warn",
119
- // "@eslint-react/prefer-read-only-props": "error",
124
+ "@eslint-react/no-useless-forward-ref": "warn",
125
+ "@eslint-react/prefer-use-state-lazy-initialization": "warn"
120
126
  };
121
127
  var plugins2 = {
122
128
  "@eslint-react": react
@@ -130,6 +136,7 @@ var name4 = "@eslint-react/all";
130
136
  var rules3 = {
131
137
  "@eslint-react/jsx-no-comment-textnodes": "warn",
132
138
  "@eslint-react/jsx-no-duplicate-props": "warn",
139
+ "@eslint-react/jsx-no-iife": "warn",
133
140
  "@eslint-react/jsx-no-undef": "error",
134
141
  "@eslint-react/jsx-uses-react": "warn",
135
142
  "@eslint-react/jsx-uses-vars": "warn",
@@ -165,6 +172,10 @@ var rules3 = {
165
172
  "@eslint-react/no-set-state-in-component-did-update": "warn",
166
173
  "@eslint-react/no-set-state-in-component-will-update": "warn",
167
174
  "@eslint-react/no-string-refs": "error",
175
+ "@eslint-react/no-unnecessary-use-callback": "warn",
176
+ "@eslint-react/no-unnecessary-use-effect": "warn",
177
+ "@eslint-react/no-unnecessary-use-memo": "warn",
178
+ "@eslint-react/no-unnecessary-use-prefix": "warn",
168
179
  "@eslint-react/no-unsafe-component-will-mount": "warn",
169
180
  "@eslint-react/no-unsafe-component-will-receive-props": "warn",
170
181
  "@eslint-react/no-unsafe-component-will-update": "warn",
@@ -176,6 +187,9 @@ var rules3 = {
176
187
  "@eslint-react/no-useless-forward-ref": "warn",
177
188
  "@eslint-react/prefer-destructuring-assignment": "warn",
178
189
  "@eslint-react/prefer-namespace-import": "warn",
190
+ "@eslint-react/prefer-use-state-lazy-initialization": "warn",
191
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
192
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
179
193
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
180
194
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
181
195
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -196,12 +210,6 @@ var rules3 = {
196
210
  "@eslint-react/web-api/no-leaked-interval": "warn",
197
211
  "@eslint-react/web-api/no-leaked-resize-observer": "warn",
198
212
  "@eslint-react/web-api/no-leaked-timeout": "warn",
199
- "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
200
- "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
201
- "@eslint-react/hooks-extra/no-unnecessary-use-callback": "warn",
202
- "@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn",
203
- "@eslint-react/hooks-extra/no-unnecessary-use-prefix": "warn",
204
- "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
205
213
  "@eslint-react/naming-convention/component-name": "warn",
206
214
  "@eslint-react/naming-convention/context-name": "warn",
207
215
  "@eslint-react/naming-convention/filename": "warn",
@@ -314,9 +322,6 @@ var rules11 = {
314
322
  ...rules2,
315
323
  ...rules,
316
324
  ...rules8,
317
- "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
318
- "@eslint-react/hooks-extra/no-unnecessary-use-prefix": "warn",
319
- "@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
320
325
  "@eslint-react/naming-convention/context-name": "warn"
321
326
  // "@eslint-react/naming-convention/use-state": "warn",
322
327
  };
@@ -442,7 +447,7 @@ var index_default = {
442
447
  ...react.rules,
443
448
  ...padKeysLeft(reactDom.rules, "dom/"),
444
449
  ...padKeysLeft(reactWebApi.rules, "web-api/"),
445
- ...padKeysLeft(reactHooksExtra.rules, "hooks-extra/"),
450
+ ...padKeysLeft(reactHooksExtra, "hooks-extra/"),
446
451
  ...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
447
452
  ...padKeysLeft(reactDebug.rules, "debug/")
448
453
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "2.0.0-next.4",
3
+ "version": "2.0.0-next.44",
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,26 @@
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.4",
46
- "@eslint-react/kit": "2.0.0-next.4",
47
- "@eslint-react/shared": "2.0.0-next.4",
48
- "eslint-plugin-react-dom": "2.0.0-next.4",
49
- "eslint-plugin-react-hooks-extra": "2.0.0-next.4",
50
- "eslint-plugin-react-x": "2.0.0-next.4",
51
- "eslint-plugin-react-debug": "2.0.0-next.4",
52
- "eslint-plugin-react-naming-convention": "2.0.0-next.4",
53
- "eslint-plugin-react-web-api": "2.0.0-next.4"
40
+ "@typescript-eslint/scope-manager": "^8.34.0",
41
+ "@typescript-eslint/type-utils": "^8.34.0",
42
+ "@typescript-eslint/types": "^8.34.0",
43
+ "@typescript-eslint/utils": "^8.34.0",
44
+ "@eslint-react/eff": "2.0.0-next.44",
45
+ "@eslint-react/shared": "2.0.0-next.44",
46
+ "eslint-plugin-react-debug": "2.0.0-next.44",
47
+ "@eslint-react/kit": "2.0.0-next.44",
48
+ "eslint-plugin-react-hooks-extra": "2.0.0-next.44",
49
+ "eslint-plugin-react-naming-convention": "2.0.0-next.44",
50
+ "eslint-plugin-react-dom": "2.0.0-next.44",
51
+ "eslint-plugin-react-web-api": "2.0.0-next.44",
52
+ "eslint-plugin-react-x": "2.0.0-next.44"
54
53
  },
55
54
  "devDependencies": {
56
- "tsup": "^8.4.0",
55
+ "tsup": "^8.5.0",
57
56
  "@local/configs": "0.0.0"
58
57
  },
59
58
  "peerDependencies": {
60
- "eslint": "^9.24.0",
59
+ "eslint": "^9.29.0",
61
60
  "typescript": "^4.9.5 || ^5.4.5"
62
61
  },
63
62
  "peerDependenciesMeta": {