@eslint-react/eslint-plugin 2.9.5-next.0 → 2.10.0
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 +1 -1
- package/dist/index.js +9 -12
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://npmjs.com/package/@eslint-react/eslint-plugin)
|
|
6
6
|
[](https://npmjs.com/package/@eslint-react/eslint-plugin)
|
|
7
7
|
[](https://npmjs.com/package/@eslint-react/eslint-plugin)
|
|
8
|
-
[](https://tsdown.dev)
|
|
9
9
|
|
|
10
10
|
4-7x faster, composable ESLint rules for React and friends.
|
|
11
11
|
|
package/dist/index.js
CHANGED
|
@@ -6,9 +6,9 @@ import reactDom from "eslint-plugin-react-dom";
|
|
|
6
6
|
import reactRsc from "eslint-plugin-react-rsc";
|
|
7
7
|
import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
|
|
8
8
|
|
|
9
|
-
//#region
|
|
9
|
+
//#region \0rolldown/runtime.js
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
11
|
-
var __exportAll = (all,
|
|
11
|
+
var __exportAll = (all, no_symbols) => {
|
|
12
12
|
let target = {};
|
|
13
13
|
for (var name in all) {
|
|
14
14
|
__defProp(target, name, {
|
|
@@ -16,7 +16,7 @@ var __exportAll = (all, symbols) => {
|
|
|
16
16
|
enumerable: true
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
if (
|
|
19
|
+
if (!no_symbols) {
|
|
20
20
|
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
21
21
|
}
|
|
22
22
|
return target;
|
|
@@ -25,7 +25,7 @@ var __exportAll = (all, symbols) => {
|
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region package.json
|
|
27
27
|
var name$19 = "@eslint-react/eslint-plugin";
|
|
28
|
-
var version = "2.
|
|
28
|
+
var version = "2.10.0";
|
|
29
29
|
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/configs/dom.ts
|
|
@@ -93,7 +93,6 @@ const rules$17 = {
|
|
|
93
93
|
"@eslint-react/no-default-props": "error",
|
|
94
94
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
95
95
|
"@eslint-react/no-forward-ref": "warn",
|
|
96
|
-
"@eslint-react/no-implicit-key": "warn",
|
|
97
96
|
"@eslint-react/no-missing-key": "error",
|
|
98
97
|
"@eslint-react/no-nested-component-definitions": "error",
|
|
99
98
|
"@eslint-react/no-nested-lazy-component-declarations": "error",
|
|
@@ -125,6 +124,7 @@ var all_exports = /* @__PURE__ */ __exportAll({
|
|
|
125
124
|
});
|
|
126
125
|
const name$15 = "@eslint-react/all";
|
|
127
126
|
const rules$16 = {
|
|
127
|
+
"@eslint-react/jsx-dollar": "warn",
|
|
128
128
|
"@eslint-react/jsx-key-before-spread": "warn",
|
|
129
129
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
130
130
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
@@ -149,12 +149,9 @@ const rules$16 = {
|
|
|
149
149
|
"@eslint-react/no-component-will-update": "error",
|
|
150
150
|
"@eslint-react/no-context-provider": "warn",
|
|
151
151
|
"@eslint-react/no-create-ref": "error",
|
|
152
|
-
"@eslint-react/no-default-props": "error",
|
|
153
152
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
154
153
|
"@eslint-react/no-duplicate-key": "error",
|
|
155
|
-
"@eslint-react/no-forbidden-props": "off",
|
|
156
154
|
"@eslint-react/no-forward-ref": "warn",
|
|
157
|
-
"@eslint-react/no-implicit-key": "warn",
|
|
158
155
|
"@eslint-react/no-leaked-conditional-rendering": "off",
|
|
159
156
|
"@eslint-react/no-missing-component-display-name": "warn",
|
|
160
157
|
"@eslint-react/no-missing-context-display-name": "warn",
|
|
@@ -162,12 +159,10 @@ const rules$16 = {
|
|
|
162
159
|
"@eslint-react/no-misused-capture-owner-stack": "error",
|
|
163
160
|
"@eslint-react/no-nested-component-definitions": "error",
|
|
164
161
|
"@eslint-react/no-nested-lazy-component-declarations": "error",
|
|
165
|
-
"@eslint-react/no-prop-types": "error",
|
|
166
162
|
"@eslint-react/no-redundant-should-component-update": "error",
|
|
167
163
|
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
168
164
|
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
169
165
|
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
170
|
-
"@eslint-react/no-string-refs": "error",
|
|
171
166
|
"@eslint-react/no-unnecessary-key": "warn",
|
|
172
167
|
"@eslint-react/no-unnecessary-use-callback": "warn",
|
|
173
168
|
"@eslint-react/no-unnecessary-use-memo": "warn",
|
|
@@ -333,6 +328,7 @@ var disable_type_checked_exports = /* @__PURE__ */ __exportAll({
|
|
|
333
328
|
});
|
|
334
329
|
const name$10 = "@eslint-react/disable-type-checked";
|
|
335
330
|
const rules$11 = {
|
|
331
|
+
"@eslint-react/no-implicit-key": "off",
|
|
336
332
|
"@eslint-react/no-leaked-conditional-rendering": "off",
|
|
337
333
|
"@eslint-react/no-unused-props": "off",
|
|
338
334
|
"@eslint-react/prefer-read-only-props": "off"
|
|
@@ -469,6 +465,7 @@ var recommended_type_checked_exports = /* @__PURE__ */ __exportAll({
|
|
|
469
465
|
const name$3 = "@eslint-react/recommended-type-checked";
|
|
470
466
|
const rules$3 = {
|
|
471
467
|
...rules$4,
|
|
468
|
+
"@eslint-react/no-implicit-key": "error",
|
|
472
469
|
"@eslint-react/no-leaked-conditional-rendering": "error"
|
|
473
470
|
};
|
|
474
471
|
const plugins$3 = { ...plugins$4 };
|
|
@@ -530,6 +527,7 @@ var strict_type_checked_exports = /* @__PURE__ */ __exportAll({
|
|
|
530
527
|
const name = "@eslint-react/strict-type-checked";
|
|
531
528
|
const rules = {
|
|
532
529
|
...rules$1,
|
|
530
|
+
"@eslint-react/no-implicit-key": "error",
|
|
533
531
|
"@eslint-react/no-leaked-conditional-rendering": "error",
|
|
534
532
|
"@eslint-react/no-unused-props": "warn"
|
|
535
533
|
};
|
|
@@ -566,7 +564,6 @@ const plugin = {
|
|
|
566
564
|
},
|
|
567
565
|
rules: { ...react.rules }
|
|
568
566
|
};
|
|
569
|
-
var src_default = plugin;
|
|
570
567
|
|
|
571
568
|
//#endregion
|
|
572
|
-
export {
|
|
569
|
+
export { plugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -45,17 +45,17 @@
|
|
|
45
45
|
"@typescript-eslint/types": "^8.54.0",
|
|
46
46
|
"@typescript-eslint/utils": "^8.54.0",
|
|
47
47
|
"ts-api-utils": "^2.4.0",
|
|
48
|
-
"@eslint-react/eff": "2.
|
|
49
|
-
"@eslint-react/shared": "2.
|
|
50
|
-
"eslint-plugin-react-
|
|
51
|
-
"eslint-plugin-react-
|
|
52
|
-
"eslint-plugin-react-
|
|
53
|
-
"eslint-plugin-react-
|
|
54
|
-
"eslint-plugin-react-x": "2.
|
|
55
|
-
"eslint-plugin-react-
|
|
48
|
+
"@eslint-react/eff": "2.10.0",
|
|
49
|
+
"@eslint-react/shared": "2.10.0",
|
|
50
|
+
"eslint-plugin-react-hooks-extra": "2.10.0",
|
|
51
|
+
"eslint-plugin-react-naming-convention": "2.10.0",
|
|
52
|
+
"eslint-plugin-react-rsc": "2.10.0",
|
|
53
|
+
"eslint-plugin-react-web-api": "2.10.0",
|
|
54
|
+
"eslint-plugin-react-x": "2.10.0",
|
|
55
|
+
"eslint-plugin-react-dom": "2.10.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"tsdown": "^0.20.
|
|
58
|
+
"tsdown": "^0.20.3",
|
|
59
59
|
"@local/configs": "0.0.0"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|