@eslint-react/eslint-plugin 3.0.0-next.0 → 3.0.0-next.12
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/README.md +6 -6
- package/dist/index.js +8 -5
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -44,15 +44,15 @@
|
|
|
44
44
|
|
|
45
45
|
### Unified ESLint Plugin
|
|
46
46
|
|
|
47
|
-
- [`@eslint-react/eslint-plugin`](https://
|
|
47
|
+
- [`@eslint-react/eslint-plugin`](https://npmx.dev/package/@eslint-react/eslint-plugin) - A unified plugin that combines all individual plugins into one.
|
|
48
48
|
|
|
49
49
|
### Modular ESLint Plugins
|
|
50
50
|
|
|
51
|
-
- [`eslint-plugin-react-x`](https://
|
|
52
|
-
- [`eslint-plugin-react-rsc`](https://
|
|
53
|
-
- [`eslint-plugin-react-dom`](https://
|
|
54
|
-
- [`eslint-plugin-react-web-api`](https://
|
|
55
|
-
- [`eslint-plugin-react-naming-convention`](https://
|
|
51
|
+
- [`eslint-plugin-react-x`](https://npmx.dev/package/eslint-plugin-react-x) - X rules (renderer-agnostic, compatible with x-platform).
|
|
52
|
+
- [`eslint-plugin-react-rsc`](https://npmx.dev/package/eslint-plugin-react-rsc) - Rules for React Server Components.
|
|
53
|
+
- [`eslint-plugin-react-dom`](https://npmx.dev/package/eslint-plugin-react-dom) - DOM-specific rules for React DOM.
|
|
54
|
+
- [`eslint-plugin-react-web-api`](https://npmx.dev/package/eslint-plugin-react-web-api) - Rules for interacting with Web APIs.
|
|
55
|
+
- [`eslint-plugin-react-naming-convention`](https://npmx.dev/package/eslint-plugin-react-naming-convention) - Naming convention rules.
|
|
56
56
|
|
|
57
57
|
> [!NOTE]\
|
|
58
58
|
> Don't know which one to use? See our [FAQ](https://eslint-react.xyz/docs/faq#which-one-should-i-use-unified-plugin-or-individual-plugins) for guidance.
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region package.json
|
|
26
26
|
var name$19 = "@eslint-react/eslint-plugin";
|
|
27
|
-
var version = "3.0.0-next.
|
|
27
|
+
var version = "3.0.0-next.12";
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/configs/dom.ts
|
|
@@ -109,9 +109,11 @@ const rules$17 = {
|
|
|
109
109
|
"@eslint-react/no-use-context": "warn",
|
|
110
110
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
111
111
|
"@eslint-react/prefer-use-state-lazy-initialization": "warn",
|
|
112
|
+
"@eslint-react/purity": "warn",
|
|
112
113
|
"@eslint-react/rules-of-hooks": "error",
|
|
113
114
|
"@eslint-react/set-state-in-effect": "warn",
|
|
114
|
-
"@eslint-react/set-state-in-render": "error"
|
|
115
|
+
"@eslint-react/set-state-in-render": "error",
|
|
116
|
+
"@eslint-react/unsupported-syntax": "error"
|
|
115
117
|
};
|
|
116
118
|
const plugins$9 = { "@eslint-react": react };
|
|
117
119
|
const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
@@ -133,7 +135,6 @@ const rules$16 = {
|
|
|
133
135
|
"@eslint-react/jsx-key-before-spread": "warn",
|
|
134
136
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
135
137
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
136
|
-
"@eslint-react/jsx-no-iife": "warn",
|
|
137
138
|
"@eslint-react/jsx-no-undef": "error",
|
|
138
139
|
"@eslint-react/jsx-shorthand-boolean": "warn",
|
|
139
140
|
"@eslint-react/jsx-shorthand-fragment": "warn",
|
|
@@ -183,6 +184,7 @@ const rules$16 = {
|
|
|
183
184
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
184
185
|
"@eslint-react/prefer-namespace-import": "warn",
|
|
185
186
|
"@eslint-react/prefer-use-state-lazy-initialization": "warn",
|
|
187
|
+
"@eslint-react/purity": "warn",
|
|
186
188
|
"@eslint-react/rules-of-hooks": "error",
|
|
187
189
|
"@eslint-react/set-state-in-effect": "warn",
|
|
188
190
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
@@ -297,8 +299,8 @@ var disable_experimental_exports = /* @__PURE__ */ __exportAll({
|
|
|
297
299
|
});
|
|
298
300
|
const name$12 = "@eslint-react/disable-experimental";
|
|
299
301
|
const rules$13 = {
|
|
302
|
+
"@eslint-react/exhaustive-deps": "off",
|
|
300
303
|
"@eslint-react/jsx-key-before-spread": "off",
|
|
301
|
-
"@eslint-react/jsx-no-iife": "off",
|
|
302
304
|
"@eslint-react/no-duplicate-key": "off",
|
|
303
305
|
"@eslint-react/no-implicit-key": "off",
|
|
304
306
|
"@eslint-react/no-misused-capture-owner-stack": "off",
|
|
@@ -306,6 +308,8 @@ const rules$13 = {
|
|
|
306
308
|
"@eslint-react/no-unnecessary-use-memo": "off",
|
|
307
309
|
"@eslint-react/no-unused-props": "off",
|
|
308
310
|
"@eslint-react/prefer-read-only-props": "off",
|
|
311
|
+
"@eslint-react/refs": "off",
|
|
312
|
+
"@eslint-react/rules-of-hooks": "off",
|
|
309
313
|
"@eslint-react/rsc/function-definition": "off"
|
|
310
314
|
};
|
|
311
315
|
|
|
@@ -481,7 +485,6 @@ var strict_exports = /* @__PURE__ */ __exportAll({
|
|
|
481
485
|
const name$2 = "@eslint-react/strict";
|
|
482
486
|
const rules$2 = {
|
|
483
487
|
...rules$6,
|
|
484
|
-
"@eslint-react/jsx-no-iife": "error",
|
|
485
488
|
"@eslint-react/no-children-prop": "error",
|
|
486
489
|
"@eslint-react/no-class-component": "error",
|
|
487
490
|
"@eslint-react/no-misused-capture-owner-stack": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.12",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
"./package.json"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@typescript-eslint/scope-manager": "
|
|
45
|
-
"@typescript-eslint/type-utils": "
|
|
46
|
-
"@typescript-eslint/types": "
|
|
47
|
-
"@typescript-eslint/utils": "
|
|
44
|
+
"@typescript-eslint/scope-manager": "canary",
|
|
45
|
+
"@typescript-eslint/type-utils": "canary",
|
|
46
|
+
"@typescript-eslint/types": "canary",
|
|
47
|
+
"@typescript-eslint/utils": "canary",
|
|
48
48
|
"ts-api-utils": "^2.4.0",
|
|
49
|
-
"@eslint-react/eff": "3.0.0-next.
|
|
50
|
-
"eslint-
|
|
51
|
-
"
|
|
52
|
-
"eslint-plugin-react-naming-convention": "3.0.0-next.
|
|
53
|
-
"eslint-plugin-react-web-api": "3.0.0-next.
|
|
54
|
-
"eslint-plugin-react-
|
|
55
|
-
"eslint-plugin-react-
|
|
49
|
+
"@eslint-react/eff": "3.0.0-next.12",
|
|
50
|
+
"@eslint-react/shared": "3.0.0-next.12",
|
|
51
|
+
"eslint-plugin-react-dom": "3.0.0-next.12",
|
|
52
|
+
"eslint-plugin-react-naming-convention": "3.0.0-next.12",
|
|
53
|
+
"eslint-plugin-react-web-api": "3.0.0-next.12",
|
|
54
|
+
"eslint-plugin-react-x": "3.0.0-next.12",
|
|
55
|
+
"eslint-plugin-react-rsc": "3.0.0-next.12"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"tsdown": "^0.20.3",
|