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

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.3";
17
+ var version = "2.0.0-next.30";
18
18
 
19
19
  // src/configs/all.ts
20
20
  var all_exports = {};
@@ -68,11 +68,10 @@ __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",
74
- // "@eslint-react/jsx-shorthand-boolean": "warn",
75
- // "@eslint-react/jsx-shorthand-fragment": "warn",
76
75
  "@eslint-react/jsx-uses-react": "warn",
77
76
  "@eslint-react/jsx-uses-vars": "warn",
78
77
  "@eslint-react/no-access-state-in-setstate": "error",
@@ -92,6 +91,9 @@ var rules2 = {
92
91
  "@eslint-react/no-create-ref": "error",
93
92
  "@eslint-react/no-default-props": "error",
94
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",
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
@@ -133,9 +133,8 @@ var name4 = "@eslint-react/all";
133
133
  var rules3 = {
134
134
  "@eslint-react/jsx-no-comment-textnodes": "warn",
135
135
  "@eslint-react/jsx-no-duplicate-props": "warn",
136
+ "@eslint-react/jsx-no-iife": "warn",
136
137
  "@eslint-react/jsx-no-undef": "error",
137
- "@eslint-react/jsx-shorthand-boolean": "warn",
138
- "@eslint-react/jsx-shorthand-fragment": "warn",
139
138
  "@eslint-react/jsx-uses-react": "warn",
140
139
  "@eslint-react/jsx-uses-vars": "warn",
141
140
  "@eslint-react/no-access-state-in-setstate": "error",
@@ -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,11 @@ 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",
187
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
188
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
185
189
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
186
190
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
187
191
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -202,12 +206,6 @@ var rules3 = {
202
206
  "@eslint-react/web-api/no-leaked-interval": "warn",
203
207
  "@eslint-react/web-api/no-leaked-resize-observer": "warn",
204
208
  "@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
209
  "@eslint-react/naming-convention/component-name": "warn",
212
210
  "@eslint-react/naming-convention/context-name": "warn",
213
211
  "@eslint-react/naming-convention/filename": "warn",
@@ -321,8 +319,6 @@ var rules11 = {
321
319
  ...rules,
322
320
  ...rules8,
323
321
  "@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
322
  "@eslint-react/naming-convention/context-name": "warn"
327
323
  // "@eslint-react/naming-convention/use-state": "warn",
328
324
  };
@@ -448,7 +444,7 @@ var index_default = {
448
444
  ...react.rules,
449
445
  ...padKeysLeft(reactDom.rules, "dom/"),
450
446
  ...padKeysLeft(reactWebApi.rules, "web-api/"),
451
- ...padKeysLeft(reactHooksExtra.rules, "hooks-extra/"),
447
+ ...padKeysLeft(reactHooksExtra, "hooks-extra/"),
452
448
  ...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
453
449
  ...padKeysLeft(reactDebug.rules, "debug/")
454
450
  }
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.30",
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.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.33.0",
41
+ "@typescript-eslint/type-utils": "^8.33.0",
42
+ "@typescript-eslint/types": "^8.33.0",
43
+ "@typescript-eslint/utils": "^8.33.0",
44
+ "@eslint-react/eff": "2.0.0-next.30",
45
+ "@eslint-react/kit": "2.0.0-next.30",
46
+ "eslint-plugin-react-debug": "2.0.0-next.30",
47
+ "eslint-plugin-react-dom": "2.0.0-next.30",
48
+ "eslint-plugin-react-hooks-extra": "2.0.0-next.30",
49
+ "eslint-plugin-react-naming-convention": "2.0.0-next.30",
50
+ "@eslint-react/shared": "2.0.0-next.30",
51
+ "eslint-plugin-react-x": "2.0.0-next.30",
52
+ "eslint-plugin-react-web-api": "2.0.0-next.30"
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.28.0",
61
60
  "typescript": "^4.9.5 || ^5.4.5"
62
61
  },
63
62
  "peerDependenciesMeta": {