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

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-next.5";
17
+ var version = "2.0.0-next.51";
17
18
 
18
19
  // src/configs/all.ts
19
20
  var all_exports = {};
@@ -67,6 +68,7 @@ __export(x_exports, {
67
68
  });
68
69
  var name3 = "@eslint-react/x";
69
70
  var rules2 = {
71
+ "@eslint-react/jsx-key-before-spread": "warn",
70
72
  "@eslint-react/jsx-no-comment-textnodes": "warn",
71
73
  "@eslint-react/jsx-no-duplicate-props": "warn",
72
74
  // "@eslint-react/jsx-no-undef": "error",
@@ -92,7 +94,6 @@ var rules2 = {
92
94
  // "@eslint-react/prefer-destructuring-assignment": "warn",
93
95
  // "@eslint-react/prefer-namespace-import": "warn",
94
96
  // "@eslint-react/prefer-read-only-props": "error",
95
- "@eslint-react/no-direct-set-state-in-use-effect": "warn",
96
97
  "@eslint-react/no-duplicate-key": "warn",
97
98
  "@eslint-react/no-forward-ref": "warn",
98
99
  "@eslint-react/no-implicit-key": "warn",
@@ -108,6 +109,8 @@ var rules2 = {
108
109
  "@eslint-react/no-set-state-in-component-did-update": "warn",
109
110
  "@eslint-react/no-set-state-in-component-will-update": "warn",
110
111
  "@eslint-react/no-string-refs": "error",
112
+ // "@eslint-react/no-unnecessary-use-callback": "warn",
113
+ // "@eslint-react/no-unnecessary-use-memo": "warn",
111
114
  "@eslint-react/no-unnecessary-use-prefix": "warn",
112
115
  "@eslint-react/no-unsafe-component-will-mount": "warn",
113
116
  "@eslint-react/no-unsafe-component-will-receive-props": "warn",
@@ -132,6 +135,7 @@ var name4 = "@eslint-react/all";
132
135
  var rules3 = {
133
136
  "@eslint-react/jsx-no-comment-textnodes": "warn",
134
137
  "@eslint-react/jsx-no-duplicate-props": "warn",
138
+ "@eslint-react/jsx-no-iife": "warn",
135
139
  "@eslint-react/jsx-no-undef": "error",
136
140
  "@eslint-react/jsx-uses-react": "warn",
137
141
  "@eslint-react/jsx-uses-vars": "warn",
@@ -152,8 +156,6 @@ var rules3 = {
152
156
  "@eslint-react/no-create-ref": "error",
153
157
  "@eslint-react/no-default-props": "error",
154
158
  "@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",
157
159
  "@eslint-react/no-duplicate-key": "warn",
158
160
  "@eslint-react/no-forward-ref": "warn",
159
161
  "@eslint-react/no-implicit-key": "warn",
@@ -184,6 +186,8 @@ var rules3 = {
184
186
  "@eslint-react/prefer-destructuring-assignment": "warn",
185
187
  "@eslint-react/prefer-namespace-import": "warn",
186
188
  "@eslint-react/prefer-use-state-lazy-initialization": "warn",
189
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
190
+ "@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
187
191
  "@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
188
192
  "@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
189
193
  "@eslint-react/dom/no-find-dom-node": "error",
@@ -214,6 +218,7 @@ var plugins3 = {
214
218
  ...plugins2,
215
219
  ...plugins,
216
220
  "@eslint-react/debug": reactDebug,
221
+ "@eslint-react/hooks-extra": reactHooksExtra,
217
222
  "@eslint-react/naming-convention": reactNamingConvention,
218
223
  "@eslint-react/web-api": reactWebApi
219
224
  };
@@ -323,6 +328,7 @@ var plugins6 = {
323
328
  ...plugins,
324
329
  ...plugins5,
325
330
  "@eslint-react/debug": reactDebug,
331
+ "@eslint-react/hooks-extra": reactHooksExtra,
326
332
  "@eslint-react/naming-convention": reactNamingConvention
327
333
  };
328
334
  var settings5 = {
@@ -439,6 +445,7 @@ var index_default = {
439
445
  ...react.rules,
440
446
  ...padKeysLeft(reactDom.rules, "dom/"),
441
447
  ...padKeysLeft(reactWebApi.rules, "web-api/"),
448
+ ...padKeysLeft(reactHooksExtra, "hooks-extra/"),
442
449
  ...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
443
450
  ...padKeysLeft(reactDebug.rules, "debug/")
444
451
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/eslint-plugin",
3
- "version": "2.0.0-next.5",
3
+ "version": "2.0.0-next.51",
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.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"
40
+ "@typescript-eslint/scope-manager": "^8.34.1",
41
+ "@typescript-eslint/type-utils": "^8.34.1",
42
+ "@typescript-eslint/types": "^8.34.1",
43
+ "@typescript-eslint/utils": "^8.34.1",
44
+ "@eslint-react/eff": "2.0.0-next.51",
45
+ "@eslint-react/shared": "2.0.0-next.51",
46
+ "eslint-plugin-react-debug": "2.0.0-next.51",
47
+ "@eslint-react/kit": "2.0.0-next.51",
48
+ "eslint-plugin-react-hooks-extra": "2.0.0-next.51",
49
+ "eslint-plugin-react-dom": "2.0.0-next.51",
50
+ "eslint-plugin-react-web-api": "2.0.0-next.51",
51
+ "eslint-plugin-react-x": "2.0.0-next.51",
52
+ "eslint-plugin-react-naming-convention": "2.0.0-next.51"
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.25.0",
59
+ "eslint": "^9.29.0",
59
60
  "typescript": "^4.9.5 || ^5.4.5"
60
61
  },
61
62
  "peerDependenciesMeta": {