eslint-plugin-react-x 2.1.0-next.4 → 2.1.0-next.5
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 +104 -108
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -26,115 +26,10 @@ var __export = (all) => {
|
|
|
26
26
|
return target;
|
|
27
27
|
};
|
|
28
28
|
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/configs/recommended.ts
|
|
31
|
-
var recommended_exports = /* @__PURE__ */ __export({
|
|
32
|
-
name: () => name$3,
|
|
33
|
-
rules: () => rules$2,
|
|
34
|
-
settings: () => settings$2
|
|
35
|
-
});
|
|
36
|
-
const name$3 = "react-x/recommended";
|
|
37
|
-
const rules$2 = {
|
|
38
|
-
"react-x/jsx-no-comment-textnodes": "warn",
|
|
39
|
-
"react-x/jsx-no-duplicate-props": "warn",
|
|
40
|
-
"react-x/jsx-no-iife": "off",
|
|
41
|
-
"react-x/jsx-no-undef": "off",
|
|
42
|
-
"react-x/jsx-shorthand-boolean": "off",
|
|
43
|
-
"react-x/jsx-shorthand-fragment": "off",
|
|
44
|
-
"react-x/jsx-uses-react": "warn",
|
|
45
|
-
"react-x/jsx-uses-vars": "warn",
|
|
46
|
-
"react-x/no-access-state-in-setstate": "error",
|
|
47
|
-
"react-x/no-array-index-key": "warn",
|
|
48
|
-
"react-x/no-children-count": "warn",
|
|
49
|
-
"react-x/no-children-for-each": "warn",
|
|
50
|
-
"react-x/no-children-map": "warn",
|
|
51
|
-
"react-x/no-children-only": "warn",
|
|
52
|
-
"react-x/no-children-prop": "off",
|
|
53
|
-
"react-x/no-children-to-array": "warn",
|
|
54
|
-
"react-x/no-class-component": "off",
|
|
55
|
-
"react-x/no-clone-element": "warn",
|
|
56
|
-
"react-x/no-component-will-mount": "error",
|
|
57
|
-
"react-x/no-component-will-receive-props": "error",
|
|
58
|
-
"react-x/no-component-will-update": "error",
|
|
59
|
-
"react-x/no-context-provider": "warn",
|
|
60
|
-
"react-x/no-create-ref": "error",
|
|
61
|
-
"react-x/no-default-props": "error",
|
|
62
|
-
"react-x/no-direct-mutation-state": "error",
|
|
63
|
-
"react-x/no-duplicate-key": "error",
|
|
64
|
-
"react-x/no-forbidden-props": "off",
|
|
65
|
-
"react-x/no-forward-ref": "warn",
|
|
66
|
-
"react-x/no-implicit-key": "warn",
|
|
67
|
-
"react-x/no-leaked-conditional-rendering": "off",
|
|
68
|
-
"react-x/no-missing-component-display-name": "off",
|
|
69
|
-
"react-x/no-missing-context-display-name": "off",
|
|
70
|
-
"react-x/no-missing-key": "error",
|
|
71
|
-
"react-x/no-misused-capture-owner-stack": "off",
|
|
72
|
-
"react-x/no-nested-component-definitions": "error",
|
|
73
|
-
"react-x/no-nested-lazy-component-declarations": "error",
|
|
74
|
-
"react-x/no-prop-types": "error",
|
|
75
|
-
"react-x/no-redundant-should-component-update": "error",
|
|
76
|
-
"react-x/no-set-state-in-component-did-mount": "warn",
|
|
77
|
-
"react-x/no-set-state-in-component-did-update": "warn",
|
|
78
|
-
"react-x/no-set-state-in-component-will-update": "warn",
|
|
79
|
-
"react-x/no-string-refs": "error",
|
|
80
|
-
"react-x/no-unnecessary-key": "off",
|
|
81
|
-
"react-x/no-unnecessary-use-callback": "off",
|
|
82
|
-
"react-x/no-unnecessary-use-memo": "off",
|
|
83
|
-
"react-x/no-unnecessary-use-prefix": "warn",
|
|
84
|
-
"react-x/no-unsafe-component-will-mount": "warn",
|
|
85
|
-
"react-x/no-unsafe-component-will-receive-props": "warn",
|
|
86
|
-
"react-x/no-unsafe-component-will-update": "warn",
|
|
87
|
-
"react-x/no-unstable-context-value": "warn",
|
|
88
|
-
"react-x/no-unstable-default-props": "warn",
|
|
89
|
-
"react-x/no-unused-class-component-members": "warn",
|
|
90
|
-
"react-x/no-unused-props": "off",
|
|
91
|
-
"react-x/no-unused-state": "warn",
|
|
92
|
-
"react-x/no-use-context": "warn",
|
|
93
|
-
"react-x/no-useless-forward-ref": "warn",
|
|
94
|
-
"react-x/no-useless-fragment": "off",
|
|
95
|
-
"react-x/prefer-destructuring-assignment": "off",
|
|
96
|
-
"react-x/prefer-namespace-import": "off",
|
|
97
|
-
"react-x/prefer-read-only-props": "off",
|
|
98
|
-
"react-x/prefer-use-state-lazy-initialization": "warn"
|
|
99
|
-
};
|
|
100
|
-
const settings$2 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
101
|
-
|
|
102
|
-
//#endregion
|
|
103
|
-
//#region src/configs/recommended-typescript.ts
|
|
104
|
-
var recommended_typescript_exports = /* @__PURE__ */ __export({
|
|
105
|
-
name: () => name$2,
|
|
106
|
-
rules: () => rules$1,
|
|
107
|
-
settings: () => settings$1
|
|
108
|
-
});
|
|
109
|
-
const name$2 = "react-x/recommended-typescript";
|
|
110
|
-
const rules$1 = {
|
|
111
|
-
...rules$2,
|
|
112
|
-
"react-x/jsx-no-duplicate-props": "off",
|
|
113
|
-
"react-x/jsx-no-undef": "off",
|
|
114
|
-
"react-x/jsx-uses-react": "off",
|
|
115
|
-
"react-x/jsx-uses-vars": "off"
|
|
116
|
-
};
|
|
117
|
-
const settings$1 = { ...settings$2 };
|
|
118
|
-
|
|
119
|
-
//#endregion
|
|
120
|
-
//#region src/configs/recommended-type-checked.ts
|
|
121
|
-
var recommended_type_checked_exports = /* @__PURE__ */ __export({
|
|
122
|
-
name: () => name$1,
|
|
123
|
-
rules: () => rules,
|
|
124
|
-
settings: () => settings
|
|
125
|
-
});
|
|
126
|
-
const name$1 = "react-x/recommended-type-checked";
|
|
127
|
-
const rules = {
|
|
128
|
-
...rules$1,
|
|
129
|
-
"react-x/no-leaked-conditional-rendering": "warn",
|
|
130
|
-
"react-x/no-unused-props": "warn"
|
|
131
|
-
};
|
|
132
|
-
const settings = { ...settings$1 };
|
|
133
|
-
|
|
134
29
|
//#endregion
|
|
135
30
|
//#region package.json
|
|
136
|
-
var name = "eslint-plugin-react-x";
|
|
137
|
-
var version = "2.1.0-next.
|
|
31
|
+
var name$3 = "eslint-plugin-react-x";
|
|
32
|
+
var version = "2.1.0-next.5";
|
|
138
33
|
|
|
139
34
|
//#endregion
|
|
140
35
|
//#region src/utils/create-rule.ts
|
|
@@ -3562,7 +3457,7 @@ function create(context) {
|
|
|
3562
3457
|
//#region src/plugin.ts
|
|
3563
3458
|
const plugin = {
|
|
3564
3459
|
meta: {
|
|
3565
|
-
name,
|
|
3460
|
+
name: name$3,
|
|
3566
3461
|
version
|
|
3567
3462
|
},
|
|
3568
3463
|
rules: {
|
|
@@ -3631,6 +3526,107 @@ const plugin = {
|
|
|
3631
3526
|
}
|
|
3632
3527
|
};
|
|
3633
3528
|
|
|
3529
|
+
//#endregion
|
|
3530
|
+
//#region src/configs/recommended.ts
|
|
3531
|
+
var recommended_exports = /* @__PURE__ */ __export({
|
|
3532
|
+
name: () => name$2,
|
|
3533
|
+
plugins: () => plugins$2,
|
|
3534
|
+
rules: () => rules$4,
|
|
3535
|
+
settings: () => settings$2
|
|
3536
|
+
});
|
|
3537
|
+
const name$2 = "react-x/recommended";
|
|
3538
|
+
const rules$4 = {
|
|
3539
|
+
"react-x/jsx-no-comment-textnodes": "warn",
|
|
3540
|
+
"react-x/jsx-no-duplicate-props": "warn",
|
|
3541
|
+
"react-x/jsx-uses-react": "warn",
|
|
3542
|
+
"react-x/jsx-uses-vars": "warn",
|
|
3543
|
+
"react-x/no-access-state-in-setstate": "error",
|
|
3544
|
+
"react-x/no-array-index-key": "warn",
|
|
3545
|
+
"react-x/no-children-count": "warn",
|
|
3546
|
+
"react-x/no-children-for-each": "warn",
|
|
3547
|
+
"react-x/no-children-map": "warn",
|
|
3548
|
+
"react-x/no-children-only": "warn",
|
|
3549
|
+
"react-x/no-children-to-array": "warn",
|
|
3550
|
+
"react-x/no-clone-element": "warn",
|
|
3551
|
+
"react-x/no-component-will-mount": "error",
|
|
3552
|
+
"react-x/no-component-will-receive-props": "error",
|
|
3553
|
+
"react-x/no-component-will-update": "error",
|
|
3554
|
+
"react-x/no-context-provider": "warn",
|
|
3555
|
+
"react-x/no-create-ref": "error",
|
|
3556
|
+
"react-x/no-default-props": "error",
|
|
3557
|
+
"react-x/no-direct-mutation-state": "error",
|
|
3558
|
+
"react-x/no-duplicate-key": "error",
|
|
3559
|
+
"react-x/no-forward-ref": "warn",
|
|
3560
|
+
"react-x/no-implicit-key": "warn",
|
|
3561
|
+
"react-x/no-missing-key": "error",
|
|
3562
|
+
"react-x/no-nested-component-definitions": "error",
|
|
3563
|
+
"react-x/no-nested-lazy-component-declarations": "error",
|
|
3564
|
+
"react-x/no-prop-types": "error",
|
|
3565
|
+
"react-x/no-redundant-should-component-update": "error",
|
|
3566
|
+
"react-x/no-set-state-in-component-did-mount": "warn",
|
|
3567
|
+
"react-x/no-set-state-in-component-did-update": "warn",
|
|
3568
|
+
"react-x/no-set-state-in-component-will-update": "warn",
|
|
3569
|
+
"react-x/no-string-refs": "error",
|
|
3570
|
+
"react-x/no-unnecessary-use-prefix": "warn",
|
|
3571
|
+
"react-x/no-unsafe-component-will-mount": "warn",
|
|
3572
|
+
"react-x/no-unsafe-component-will-receive-props": "warn",
|
|
3573
|
+
"react-x/no-unsafe-component-will-update": "warn",
|
|
3574
|
+
"react-x/no-unused-class-component-members": "warn",
|
|
3575
|
+
"react-x/no-use-context": "warn",
|
|
3576
|
+
"react-x/no-useless-forward-ref": "warn",
|
|
3577
|
+
"react-x/prefer-use-state-lazy-initialization": "warn"
|
|
3578
|
+
};
|
|
3579
|
+
const plugins$2 = { "react-x": plugin };
|
|
3580
|
+
const settings$2 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
3581
|
+
|
|
3582
|
+
//#endregion
|
|
3583
|
+
//#region src/configs/_tc.ts
|
|
3584
|
+
const rules$3 = {
|
|
3585
|
+
"react-x/no-leaked-conditional-rendering": "warn",
|
|
3586
|
+
"react-x/no-unused-props": "warn"
|
|
3587
|
+
};
|
|
3588
|
+
|
|
3589
|
+
//#endregion
|
|
3590
|
+
//#region src/configs/_ts.ts
|
|
3591
|
+
const rules$2 = {
|
|
3592
|
+
"react-x/jsx-no-duplicate-props": "off",
|
|
3593
|
+
"react-x/jsx-no-undef": "off",
|
|
3594
|
+
"react-x/jsx-uses-react": "off",
|
|
3595
|
+
"react-x/jsx-uses-vars": "off"
|
|
3596
|
+
};
|
|
3597
|
+
|
|
3598
|
+
//#endregion
|
|
3599
|
+
//#region src/configs/recommended-typescript.ts
|
|
3600
|
+
var recommended_typescript_exports = /* @__PURE__ */ __export({
|
|
3601
|
+
name: () => name$1,
|
|
3602
|
+
plugins: () => plugins$1,
|
|
3603
|
+
rules: () => rules$1,
|
|
3604
|
+
settings: () => settings$1
|
|
3605
|
+
});
|
|
3606
|
+
const name$1 = "react-x/recommended-typescript";
|
|
3607
|
+
const rules$1 = {
|
|
3608
|
+
...rules$4,
|
|
3609
|
+
...rules$2
|
|
3610
|
+
};
|
|
3611
|
+
const plugins$1 = { ...plugins$2 };
|
|
3612
|
+
const settings$1 = { ...settings$2 };
|
|
3613
|
+
|
|
3614
|
+
//#endregion
|
|
3615
|
+
//#region src/configs/recommended-type-checked.ts
|
|
3616
|
+
var recommended_type_checked_exports = /* @__PURE__ */ __export({
|
|
3617
|
+
name: () => name,
|
|
3618
|
+
plugins: () => plugins,
|
|
3619
|
+
rules: () => rules,
|
|
3620
|
+
settings: () => settings
|
|
3621
|
+
});
|
|
3622
|
+
const name = "react-x/recommended-type-checked";
|
|
3623
|
+
const rules = {
|
|
3624
|
+
...rules$1,
|
|
3625
|
+
...rules$3
|
|
3626
|
+
};
|
|
3627
|
+
const plugins = { ...plugins$1 };
|
|
3628
|
+
const settings = { ...settings$1 };
|
|
3629
|
+
|
|
3634
3630
|
//#endregion
|
|
3635
3631
|
//#region src/index.ts
|
|
3636
3632
|
const { toFlatConfig } = getConfigAdapters("react-x", plugin);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "2.1.0-next.
|
|
3
|
+
"version": "2.1.0-next.5",
|
|
4
4
|
"description": "A set of composable ESLint rules for for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"string-ts": "^2.2.1",
|
|
44
44
|
"ts-api-utils": "^2.1.0",
|
|
45
45
|
"ts-pattern": "^5.8.0",
|
|
46
|
-
"@eslint-react/ast": "2.1.0-next.
|
|
47
|
-
"@eslint-react/core": "2.1.0-next.
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
46
|
+
"@eslint-react/ast": "2.1.0-next.5",
|
|
47
|
+
"@eslint-react/core": "2.1.0-next.5",
|
|
48
|
+
"@eslint-react/shared": "2.1.0-next.5",
|
|
49
|
+
"@eslint-react/var": "2.1.0-next.5",
|
|
50
|
+
"@eslint-react/kit": "2.1.0-next.5",
|
|
51
|
+
"@eslint-react/eff": "2.1.0-next.5"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/react": "^19.2.2",
|