@eslint-react/eslint-plugin 1.47.2 → 1.47.3-beta.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 +12 -2
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +8 -2
- package/dist/index.mjs +8 -2
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -75,21 +75,31 @@ import tseslint from "typescript-eslint";
|
|
|
75
75
|
|
|
76
76
|
export default tseslint.config({
|
|
77
77
|
files: ["**/*.ts", "**/*.tsx"],
|
|
78
|
+
|
|
79
|
+
// Extend recommended rule sets from:
|
|
80
|
+
// 1. ESLint JS's recommended rules
|
|
81
|
+
// 2. TypeScript ESLint recommended rules
|
|
82
|
+
// 3. ESLint React's recommended-typescript rules
|
|
78
83
|
extends: [
|
|
79
84
|
eslintJs.configs.recommended,
|
|
80
85
|
tseslint.configs.recommended,
|
|
81
86
|
eslintReact.configs["recommended-typescript"],
|
|
82
87
|
],
|
|
88
|
+
|
|
89
|
+
// Configure language/parsing options
|
|
83
90
|
languageOptions: {
|
|
91
|
+
// Use TypeScript ESLint parser for TypeScript files
|
|
84
92
|
parser: tseslint.parser,
|
|
85
93
|
parserOptions: {
|
|
94
|
+
// Enable project service for better TypeScript integration
|
|
86
95
|
projectService: true,
|
|
87
96
|
tsconfigRootDir: import.meta.dirname,
|
|
88
97
|
},
|
|
89
98
|
},
|
|
99
|
+
|
|
100
|
+
// Custom rule overrides (modify rule levels or disable rules)
|
|
90
101
|
rules: {
|
|
91
|
-
|
|
92
|
-
"@eslint-react/no-class-component": "error",
|
|
102
|
+
"@eslint-react/no-missing-key": "warn",
|
|
93
103
|
},
|
|
94
104
|
});
|
|
95
105
|
```
|
package/dist/index.d.mts
CHANGED
|
@@ -35,7 +35,9 @@ declare const rules$b: {
|
|
|
35
35
|
readonly "@eslint-react/no-missing-component-display-name": "warn";
|
|
36
36
|
readonly "@eslint-react/no-missing-context-display-name": "warn";
|
|
37
37
|
readonly "@eslint-react/no-missing-key": "error";
|
|
38
|
+
readonly "@eslint-react/no-misused-capture-owner-stack": "error";
|
|
38
39
|
readonly "@eslint-react/no-nested-component-definitions": "error";
|
|
40
|
+
readonly "@eslint-react/no-nested-lazy-component-declarations": "warn";
|
|
39
41
|
readonly "@eslint-react/no-prop-types": "error";
|
|
40
42
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
41
43
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -53,6 +55,7 @@ declare const rules$b: {
|
|
|
53
55
|
readonly "@eslint-react/no-useless-forward-ref": "warn";
|
|
54
56
|
readonly "@eslint-react/no-useless-fragment": "warn";
|
|
55
57
|
readonly "@eslint-react/prefer-destructuring-assignment": "warn";
|
|
58
|
+
readonly "@eslint-react/prefer-react-namespace-import": "warn";
|
|
56
59
|
readonly "@eslint-react/prefer-shorthand-boolean": "off";
|
|
57
60
|
readonly "@eslint-react/prefer-shorthand-fragment": "off";
|
|
58
61
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
@@ -696,6 +699,7 @@ declare const rules$a: {
|
|
|
696
699
|
readonly "@eslint-react/debug/function-component": "warn";
|
|
697
700
|
readonly "@eslint-react/debug/hook": "warn";
|
|
698
701
|
readonly "@eslint-react/debug/is-from-react": "warn";
|
|
702
|
+
readonly "@eslint-react/debug/jsx": "warn";
|
|
699
703
|
};
|
|
700
704
|
declare const plugins$5: {
|
|
701
705
|
"@eslint-react/debug": {
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,9 @@ declare const rules$b: {
|
|
|
35
35
|
readonly "@eslint-react/no-missing-component-display-name": "warn";
|
|
36
36
|
readonly "@eslint-react/no-missing-context-display-name": "warn";
|
|
37
37
|
readonly "@eslint-react/no-missing-key": "error";
|
|
38
|
+
readonly "@eslint-react/no-misused-capture-owner-stack": "error";
|
|
38
39
|
readonly "@eslint-react/no-nested-component-definitions": "error";
|
|
40
|
+
readonly "@eslint-react/no-nested-lazy-component-declarations": "warn";
|
|
39
41
|
readonly "@eslint-react/no-prop-types": "error";
|
|
40
42
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
41
43
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -53,6 +55,7 @@ declare const rules$b: {
|
|
|
53
55
|
readonly "@eslint-react/no-useless-forward-ref": "warn";
|
|
54
56
|
readonly "@eslint-react/no-useless-fragment": "warn";
|
|
55
57
|
readonly "@eslint-react/prefer-destructuring-assignment": "warn";
|
|
58
|
+
readonly "@eslint-react/prefer-react-namespace-import": "warn";
|
|
56
59
|
readonly "@eslint-react/prefer-shorthand-boolean": "off";
|
|
57
60
|
readonly "@eslint-react/prefer-shorthand-fragment": "off";
|
|
58
61
|
readonly "@eslint-react/dom/no-dangerously-set-innerhtml": "warn";
|
|
@@ -696,6 +699,7 @@ declare const rules$a: {
|
|
|
696
699
|
readonly "@eslint-react/debug/function-component": "warn";
|
|
697
700
|
readonly "@eslint-react/debug/hook": "warn";
|
|
698
701
|
readonly "@eslint-react/debug/is-from-react": "warn";
|
|
702
|
+
readonly "@eslint-react/debug/jsx": "warn";
|
|
699
703
|
};
|
|
700
704
|
declare const plugins$5: {
|
|
701
705
|
"@eslint-react/debug": {
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ var __export = (target, all) => {
|
|
|
25
25
|
|
|
26
26
|
// package.json
|
|
27
27
|
var name = "@eslint-react/eslint-plugin";
|
|
28
|
-
var version = "1.47.
|
|
28
|
+
var version = "1.47.3-beta.0";
|
|
29
29
|
|
|
30
30
|
// src/configs/all.ts
|
|
31
31
|
var all_exports = {};
|
|
@@ -159,10 +159,13 @@ var rules3 = {
|
|
|
159
159
|
"@eslint-react/no-duplicate-key": "warn",
|
|
160
160
|
"@eslint-react/no-forward-ref": "warn",
|
|
161
161
|
"@eslint-react/no-implicit-key": "warn",
|
|
162
|
+
// "@eslint-react/no-leaked-conditional-rendering": "warn",
|
|
162
163
|
"@eslint-react/no-missing-component-display-name": "warn",
|
|
163
164
|
"@eslint-react/no-missing-context-display-name": "warn",
|
|
164
165
|
"@eslint-react/no-missing-key": "error",
|
|
166
|
+
"@eslint-react/no-misused-capture-owner-stack": "error",
|
|
165
167
|
"@eslint-react/no-nested-component-definitions": "error",
|
|
168
|
+
"@eslint-react/no-nested-lazy-component-declarations": "warn",
|
|
166
169
|
"@eslint-react/no-prop-types": "error",
|
|
167
170
|
"@eslint-react/no-redundant-should-component-update": "error",
|
|
168
171
|
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
@@ -180,6 +183,8 @@ var rules3 = {
|
|
|
180
183
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
181
184
|
"@eslint-react/no-useless-fragment": "warn",
|
|
182
185
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
186
|
+
"@eslint-react/prefer-react-namespace-import": "warn",
|
|
187
|
+
// "@eslint-react/prefer-read-only-props": "warn",
|
|
183
188
|
"@eslint-react/prefer-shorthand-boolean": "off",
|
|
184
189
|
"@eslint-react/prefer-shorthand-fragment": "off",
|
|
185
190
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
@@ -238,7 +243,8 @@ var rules4 = {
|
|
|
238
243
|
"@eslint-react/debug/class-component": "warn",
|
|
239
244
|
"@eslint-react/debug/function-component": "warn",
|
|
240
245
|
"@eslint-react/debug/hook": "warn",
|
|
241
|
-
"@eslint-react/debug/is-from-react": "warn"
|
|
246
|
+
"@eslint-react/debug/is-from-react": "warn",
|
|
247
|
+
"@eslint-react/debug/jsx": "warn"
|
|
242
248
|
};
|
|
243
249
|
var plugins4 = {
|
|
244
250
|
"@eslint-react/debug": reactDebug__default.default
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ var __export = (target, all) => {
|
|
|
14
14
|
|
|
15
15
|
// package.json
|
|
16
16
|
var name = "@eslint-react/eslint-plugin";
|
|
17
|
-
var version = "1.47.
|
|
17
|
+
var version = "1.47.3-beta.0";
|
|
18
18
|
|
|
19
19
|
// src/configs/all.ts
|
|
20
20
|
var all_exports = {};
|
|
@@ -148,10 +148,13 @@ var rules3 = {
|
|
|
148
148
|
"@eslint-react/no-duplicate-key": "warn",
|
|
149
149
|
"@eslint-react/no-forward-ref": "warn",
|
|
150
150
|
"@eslint-react/no-implicit-key": "warn",
|
|
151
|
+
// "@eslint-react/no-leaked-conditional-rendering": "warn",
|
|
151
152
|
"@eslint-react/no-missing-component-display-name": "warn",
|
|
152
153
|
"@eslint-react/no-missing-context-display-name": "warn",
|
|
153
154
|
"@eslint-react/no-missing-key": "error",
|
|
155
|
+
"@eslint-react/no-misused-capture-owner-stack": "error",
|
|
154
156
|
"@eslint-react/no-nested-component-definitions": "error",
|
|
157
|
+
"@eslint-react/no-nested-lazy-component-declarations": "warn",
|
|
155
158
|
"@eslint-react/no-prop-types": "error",
|
|
156
159
|
"@eslint-react/no-redundant-should-component-update": "error",
|
|
157
160
|
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
@@ -169,6 +172,8 @@ var rules3 = {
|
|
|
169
172
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
170
173
|
"@eslint-react/no-useless-fragment": "warn",
|
|
171
174
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
175
|
+
"@eslint-react/prefer-react-namespace-import": "warn",
|
|
176
|
+
// "@eslint-react/prefer-read-only-props": "warn",
|
|
172
177
|
"@eslint-react/prefer-shorthand-boolean": "off",
|
|
173
178
|
"@eslint-react/prefer-shorthand-fragment": "off",
|
|
174
179
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
@@ -227,7 +232,8 @@ var rules4 = {
|
|
|
227
232
|
"@eslint-react/debug/class-component": "warn",
|
|
228
233
|
"@eslint-react/debug/function-component": "warn",
|
|
229
234
|
"@eslint-react/debug/hook": "warn",
|
|
230
|
-
"@eslint-react/debug/is-from-react": "warn"
|
|
235
|
+
"@eslint-react/debug/is-from-react": "warn",
|
|
236
|
+
"@eslint-react/debug/jsx": "warn"
|
|
231
237
|
};
|
|
232
238
|
var plugins4 = {
|
|
233
239
|
"@eslint-react/debug": reactDebug
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.47.
|
|
3
|
+
"version": "1.47.3-beta.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",
|
|
@@ -46,19 +46,19 @@
|
|
|
46
46
|
"./package.json"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
50
|
-
"@typescript-eslint/type-utils": "^8.
|
|
51
|
-
"@typescript-eslint/types": "^8.
|
|
52
|
-
"@typescript-eslint/utils": "^8.
|
|
53
|
-
"@eslint-react/eff": "1.47.
|
|
54
|
-
"eslint-
|
|
55
|
-
"eslint-
|
|
56
|
-
"
|
|
57
|
-
"eslint-plugin-react-
|
|
58
|
-
"eslint-plugin-react-
|
|
59
|
-
"eslint-plugin-react-
|
|
60
|
-
"
|
|
61
|
-
"eslint-plugin-react-
|
|
49
|
+
"@typescript-eslint/scope-manager": "^8.30.1",
|
|
50
|
+
"@typescript-eslint/type-utils": "^8.30.1",
|
|
51
|
+
"@typescript-eslint/types": "^8.30.1",
|
|
52
|
+
"@typescript-eslint/utils": "^8.30.1",
|
|
53
|
+
"@eslint-react/eff": "1.47.3-beta.0",
|
|
54
|
+
"@eslint-react/shared": "1.47.3-beta.0",
|
|
55
|
+
"@eslint-react/kit": "1.47.3-beta.0",
|
|
56
|
+
"eslint-plugin-react-debug": "1.47.3-beta.0",
|
|
57
|
+
"eslint-plugin-react-dom": "1.47.3-beta.0",
|
|
58
|
+
"eslint-plugin-react-hooks-extra": "1.47.3-beta.0",
|
|
59
|
+
"eslint-plugin-react-naming-convention": "1.47.3-beta.0",
|
|
60
|
+
"eslint-plugin-react-web-api": "1.47.3-beta.0",
|
|
61
|
+
"eslint-plugin-react-x": "1.47.3-beta.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"tsup": "^8.4.0",
|