@eslint-react/eslint-plugin 2.0.0-beta.18 → 2.0.0-beta.4

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,5 +1,6 @@
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';
3
4
  import reactNamingConvention from 'eslint-plugin-react-naming-convention';
4
5
  import reactWebApi from 'eslint-plugin-react-web-api';
5
6
  import react from 'eslint-plugin-react-x';
@@ -13,7 +14,7 @@ var __export = (target, all) => {
13
14
 
14
15
  // package.json
15
16
  var name = "@eslint-react/eslint-plugin";
16
- var version = "2.0.0-beta.18";
17
+ var version = "2.0.0-beta.4";
17
18
 
18
19
  // src/configs/all.ts
19
20
  var all_exports = {};
@@ -67,8 +68,8 @@ __export(x_exports, {
67
68
  });
68
69
  var name3 = "@eslint-react/x";
69
70
  var rules2 = {
70
- "@eslint-react/jsx-no-comment-textnodes": "warn",
71
71
  "@eslint-react/jsx-key-before-spread": "warn",
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
75
  "@eslint-react/jsx-uses-react": "warn",
@@ -93,7 +94,6 @@ var rules2 = {
93
94
  // "@eslint-react/prefer-destructuring-assignment": "warn",
94
95
  // "@eslint-react/prefer-namespace-import": "warn",
95
96
  // "@eslint-react/prefer-read-only-props": "error",
96
- "@eslint-react/no-direct-set-state-in-use-effect": "warn",
97
97
  "@eslint-react/no-duplicate-key": "warn",
98
98
  "@eslint-react/no-forward-ref": "warn",
99
99
  "@eslint-react/no-implicit-key": "warn",
@@ -109,6 +109,8 @@ var rules2 = {
109
109
  "@eslint-react/no-set-state-in-component-did-update": "warn",
110
110
  "@eslint-react/no-set-state-in-component-will-update": "warn",
111
111
  "@eslint-react/no-string-refs": "error",
112
+ // "@eslint-react/no-unnecessary-use-callback": "warn",
113
+ // "@eslint-react/no-unnecessary-use-memo": "warn",
112
114
  "@eslint-react/no-unnecessary-use-prefix": "warn",
113
115
  "@eslint-react/no-unsafe-component-will-mount": "warn",
114
116
  "@eslint-react/no-unsafe-component-will-receive-props": "warn",
@@ -131,9 +133,13 @@ var settings2 = {
131
133
  // src/configs/all.ts
132
134
  var name4 = "@eslint-react/all";
133
135
  var rules3 = {
136
+ "@eslint-react/jsx-key-before-spread": "warn",
134
137
  "@eslint-react/jsx-no-comment-textnodes": "warn",
135
138
  "@eslint-react/jsx-no-duplicate-props": "warn",
139
+ "@eslint-react/jsx-no-iife": "warn",
136
140
  "@eslint-react/jsx-no-undef": "error",
141
+ "@eslint-react/jsx-shorthand-boolean": "warn",
142
+ "@eslint-react/jsx-shorthand-fragment": "warn",
137
143
  "@eslint-react/jsx-uses-react": "warn",
138
144
  "@eslint-react/jsx-uses-vars": "warn",
139
145
  "@eslint-react/no-access-state-in-setstate": "error",
@@ -146,6 +152,7 @@ var rules3 = {
146
152
  "@eslint-react/no-children-to-array": "warn",
147
153
  "@eslint-react/no-class-component": "warn",
148
154
  "@eslint-react/no-clone-element": "warn",
155
+ "@eslint-react/no-comment-textnodes": "warn",
149
156
  "@eslint-react/no-component-will-mount": "error",
150
157
  "@eslint-react/no-component-will-receive-props": "error",
151
158
  "@eslint-react/no-component-will-update": "error",
@@ -153,17 +160,16 @@ var rules3 = {
153
160
  "@eslint-react/no-create-ref": "error",
154
161
  "@eslint-react/no-default-props": "error",
155
162
  "@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
- "@eslint-react/no-duplicate-key": "warn",
163
+ "@eslint-react/no-duplicate-key": "error",
159
164
  "@eslint-react/no-forward-ref": "warn",
160
165
  "@eslint-react/no-implicit-key": "warn",
166
+ // "@eslint-react/no-leaked-conditional-rendering": "warn",
161
167
  "@eslint-react/no-missing-component-display-name": "warn",
162
168
  "@eslint-react/no-missing-context-display-name": "warn",
163
169
  "@eslint-react/no-missing-key": "error",
164
170
  "@eslint-react/no-misused-capture-owner-stack": "error",
165
171
  "@eslint-react/no-nested-component-definitions": "error",
166
- "@eslint-react/no-nested-lazy-component-declarations": "warn",
172
+ "@eslint-react/no-nested-lazy-component-declarations": "error",
167
173
  "@eslint-react/no-prop-types": "error",
168
174
  "@eslint-react/no-redundant-should-component-update": "error",
169
175
  "@eslint-react/no-set-state-in-component-did-mount": "warn",
@@ -182,9 +188,13 @@ var rules3 = {
182
188
  "@eslint-react/no-unused-state": "warn",
183
189
  "@eslint-react/no-use-context": "warn",
184
190
  "@eslint-react/no-useless-forward-ref": "warn",
191
+ "@eslint-react/no-useless-fragment": "warn",
185
192
  "@eslint-react/prefer-destructuring-assignment": "warn",
186
193
  "@eslint-react/prefer-namespace-import": "warn",
194
+ // "@eslint-react/prefer-read-only-props": "error",
187
195
  "@eslint-react/prefer-use-state-lazy-initialization": "warn",
196
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
197
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
188
198
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
189
199
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
190
200
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -215,6 +225,7 @@ var plugins3 = {
215
225
  ...plugins2,
216
226
  ...plugins,
217
227
  "@eslint-react/debug": reactDebug,
228
+ "@eslint-react/hooks-extra": reactHooksExtra,
218
229
  "@eslint-react/naming-convention": reactNamingConvention,
219
230
  "@eslint-react/web-api": reactWebApi
220
231
  };
@@ -324,6 +335,7 @@ var plugins6 = {
324
335
  ...plugins,
325
336
  ...plugins5,
326
337
  "@eslint-react/debug": reactDebug,
338
+ "@eslint-react/hooks-extra": reactHooksExtra,
327
339
  "@eslint-react/naming-convention": reactNamingConvention
328
340
  };
329
341
  var settings5 = {
@@ -440,6 +452,7 @@ var index_default = {
440
452
  ...react.rules,
441
453
  ...padKeysLeft(reactDom.rules, "dom/"),
442
454
  ...padKeysLeft(reactWebApi.rules, "web-api/"),
455
+ ...padKeysLeft(reactHooksExtra, "hooks-extra/"),
443
456
  ...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
444
457
  ...padKeysLeft(reactDebug.rules, "debug/")
445
458
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "2.0.0-beta.18",
3
+ "version": "2.0.0-beta.4",
4
4
  "description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
5
5
  "keywords": [
6
6
  "react",
@@ -37,25 +37,26 @@
37
37
  "./package.json"
38
38
  ],
39
39
  "dependencies": {
40
- "@typescript-eslint/scope-manager": "^8.32.0",
41
- "@typescript-eslint/type-utils": "^8.32.0",
42
- "@typescript-eslint/types": "^8.32.0",
43
- "@typescript-eslint/utils": "^8.32.0",
44
- "@eslint-react/eff": "2.0.0-beta.18",
45
- "@eslint-react/kit": "2.0.0-beta.18",
46
- "eslint-plugin-react-dom": "2.0.0-beta.18",
47
- "eslint-plugin-react-debug": "2.0.0-beta.18",
48
- "eslint-plugin-react-naming-convention": "2.0.0-beta.18",
49
- "@eslint-react/shared": "2.0.0-beta.18",
50
- "eslint-plugin-react-web-api": "2.0.0-beta.18",
51
- "eslint-plugin-react-x": "2.0.0-beta.18"
40
+ "@typescript-eslint/scope-manager": "^8.35.0",
41
+ "@typescript-eslint/type-utils": "^8.35.0",
42
+ "@typescript-eslint/types": "^8.35.0",
43
+ "@typescript-eslint/utils": "^8.35.0",
44
+ "@eslint-react/eff": "2.0.0-beta.4",
45
+ "@eslint-react/kit": "2.0.0-beta.4",
46
+ "eslint-plugin-react-debug": "2.0.0-beta.4",
47
+ "@eslint-react/shared": "2.0.0-beta.4",
48
+ "eslint-plugin-react-dom": "2.0.0-beta.4",
49
+ "eslint-plugin-react-hooks-extra": "2.0.0-beta.4",
50
+ "eslint-plugin-react-naming-convention": "2.0.0-beta.4",
51
+ "eslint-plugin-react-web-api": "2.0.0-beta.4",
52
+ "eslint-plugin-react-x": "2.0.0-beta.4"
52
53
  },
53
54
  "devDependencies": {
54
- "tsup": "^8.4.0",
55
+ "tsup": "^8.5.0",
55
56
  "@local/configs": "0.0.0"
56
57
  },
57
58
  "peerDependencies": {
58
- "eslint": "^9.26.0",
59
+ "eslint": "^9.29.0",
59
60
  "typescript": "^4.9.5 || ^5.4.5"
60
61
  },
61
62
  "peerDependenciesMeta": {