@eslint-react/eslint-plugin 2.0.0-beta.2 → 2.0.0-beta.4
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.d.ts +7 -2
- package/dist/index.js +10 -3
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -4,10 +4,13 @@ import { RulePreset } from '@eslint-react/kit';
|
|
|
4
4
|
|
|
5
5
|
declare const name$b = "@eslint-react/all";
|
|
6
6
|
declare const rules$b: {
|
|
7
|
+
readonly "@eslint-react/jsx-key-before-spread": "warn";
|
|
7
8
|
readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
|
|
8
9
|
readonly "@eslint-react/jsx-no-duplicate-props": "warn";
|
|
9
10
|
readonly "@eslint-react/jsx-no-iife": "warn";
|
|
10
11
|
readonly "@eslint-react/jsx-no-undef": "error";
|
|
12
|
+
readonly "@eslint-react/jsx-shorthand-boolean": "warn";
|
|
13
|
+
readonly "@eslint-react/jsx-shorthand-fragment": "warn";
|
|
11
14
|
readonly "@eslint-react/jsx-uses-react": "warn";
|
|
12
15
|
readonly "@eslint-react/jsx-uses-vars": "warn";
|
|
13
16
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
@@ -20,6 +23,7 @@ declare const rules$b: {
|
|
|
20
23
|
readonly "@eslint-react/no-children-to-array": "warn";
|
|
21
24
|
readonly "@eslint-react/no-class-component": "warn";
|
|
22
25
|
readonly "@eslint-react/no-clone-element": "warn";
|
|
26
|
+
readonly "@eslint-react/no-comment-textnodes": "warn";
|
|
23
27
|
readonly "@eslint-react/no-component-will-mount": "error";
|
|
24
28
|
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
25
29
|
readonly "@eslint-react/no-component-will-update": "error";
|
|
@@ -27,7 +31,7 @@ declare const rules$b: {
|
|
|
27
31
|
readonly "@eslint-react/no-create-ref": "error";
|
|
28
32
|
readonly "@eslint-react/no-default-props": "error";
|
|
29
33
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
30
|
-
readonly "@eslint-react/no-duplicate-key": "
|
|
34
|
+
readonly "@eslint-react/no-duplicate-key": "error";
|
|
31
35
|
readonly "@eslint-react/no-forward-ref": "warn";
|
|
32
36
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
33
37
|
readonly "@eslint-react/no-missing-component-display-name": "warn";
|
|
@@ -35,7 +39,7 @@ declare const rules$b: {
|
|
|
35
39
|
readonly "@eslint-react/no-missing-key": "error";
|
|
36
40
|
readonly "@eslint-react/no-misused-capture-owner-stack": "error";
|
|
37
41
|
readonly "@eslint-react/no-nested-component-definitions": "error";
|
|
38
|
-
readonly "@eslint-react/no-nested-lazy-component-declarations": "
|
|
42
|
+
readonly "@eslint-react/no-nested-lazy-component-declarations": "error";
|
|
39
43
|
readonly "@eslint-react/no-prop-types": "error";
|
|
40
44
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
41
45
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -54,6 +58,7 @@ declare const rules$b: {
|
|
|
54
58
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
55
59
|
readonly "@eslint-react/no-use-context": "warn";
|
|
56
60
|
readonly "@eslint-react/no-useless-forward-ref": "warn";
|
|
61
|
+
readonly "@eslint-react/no-useless-fragment": "warn";
|
|
57
62
|
readonly "@eslint-react/prefer-destructuring-assignment": "warn";
|
|
58
63
|
readonly "@eslint-react/prefer-namespace-import": "warn";
|
|
59
64
|
readonly "@eslint-react/prefer-use-state-lazy-initialization": "warn";
|
package/dist/index.js
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 = "2.0.0-beta.
|
|
17
|
+
var version = "2.0.0-beta.4";
|
|
18
18
|
|
|
19
19
|
// src/configs/all.ts
|
|
20
20
|
var all_exports = {};
|
|
@@ -133,10 +133,13 @@ var settings2 = {
|
|
|
133
133
|
// src/configs/all.ts
|
|
134
134
|
var name4 = "@eslint-react/all";
|
|
135
135
|
var rules3 = {
|
|
136
|
+
"@eslint-react/jsx-key-before-spread": "warn",
|
|
136
137
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
137
138
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
138
139
|
"@eslint-react/jsx-no-iife": "warn",
|
|
139
140
|
"@eslint-react/jsx-no-undef": "error",
|
|
141
|
+
"@eslint-react/jsx-shorthand-boolean": "warn",
|
|
142
|
+
"@eslint-react/jsx-shorthand-fragment": "warn",
|
|
140
143
|
"@eslint-react/jsx-uses-react": "warn",
|
|
141
144
|
"@eslint-react/jsx-uses-vars": "warn",
|
|
142
145
|
"@eslint-react/no-access-state-in-setstate": "error",
|
|
@@ -149,6 +152,7 @@ var rules3 = {
|
|
|
149
152
|
"@eslint-react/no-children-to-array": "warn",
|
|
150
153
|
"@eslint-react/no-class-component": "warn",
|
|
151
154
|
"@eslint-react/no-clone-element": "warn",
|
|
155
|
+
"@eslint-react/no-comment-textnodes": "warn",
|
|
152
156
|
"@eslint-react/no-component-will-mount": "error",
|
|
153
157
|
"@eslint-react/no-component-will-receive-props": "error",
|
|
154
158
|
"@eslint-react/no-component-will-update": "error",
|
|
@@ -156,15 +160,16 @@ var rules3 = {
|
|
|
156
160
|
"@eslint-react/no-create-ref": "error",
|
|
157
161
|
"@eslint-react/no-default-props": "error",
|
|
158
162
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
159
|
-
"@eslint-react/no-duplicate-key": "
|
|
163
|
+
"@eslint-react/no-duplicate-key": "error",
|
|
160
164
|
"@eslint-react/no-forward-ref": "warn",
|
|
161
165
|
"@eslint-react/no-implicit-key": "warn",
|
|
166
|
+
// "@eslint-react/no-leaked-conditional-rendering": "warn",
|
|
162
167
|
"@eslint-react/no-missing-component-display-name": "warn",
|
|
163
168
|
"@eslint-react/no-missing-context-display-name": "warn",
|
|
164
169
|
"@eslint-react/no-missing-key": "error",
|
|
165
170
|
"@eslint-react/no-misused-capture-owner-stack": "error",
|
|
166
171
|
"@eslint-react/no-nested-component-definitions": "error",
|
|
167
|
-
"@eslint-react/no-nested-lazy-component-declarations": "
|
|
172
|
+
"@eslint-react/no-nested-lazy-component-declarations": "error",
|
|
168
173
|
"@eslint-react/no-prop-types": "error",
|
|
169
174
|
"@eslint-react/no-redundant-should-component-update": "error",
|
|
170
175
|
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
@@ -183,8 +188,10 @@ var rules3 = {
|
|
|
183
188
|
"@eslint-react/no-unused-state": "warn",
|
|
184
189
|
"@eslint-react/no-use-context": "warn",
|
|
185
190
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
191
|
+
"@eslint-react/no-useless-fragment": "warn",
|
|
186
192
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
187
193
|
"@eslint-react/prefer-namespace-import": "warn",
|
|
194
|
+
// "@eslint-react/prefer-read-only-props": "error",
|
|
188
195
|
"@eslint-react/prefer-use-state-lazy-initialization": "warn",
|
|
189
196
|
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
190
197
|
"@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.4",
|
|
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,15 +41,15 @@
|
|
|
41
41
|
"@typescript-eslint/type-utils": "^8.35.0",
|
|
42
42
|
"@typescript-eslint/types": "^8.35.0",
|
|
43
43
|
"@typescript-eslint/utils": "^8.35.0",
|
|
44
|
-
"@eslint-react/eff": "2.0.0-beta.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"eslint-plugin-react-debug": "2.0.0-beta.
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"eslint-plugin-react-dom": "2.0.0-beta.
|
|
49
|
-
"eslint-plugin-react-
|
|
50
|
-
"eslint-plugin-react-
|
|
51
|
-
"eslint-plugin-react-
|
|
52
|
-
"eslint-plugin-react-
|
|
44
|
+
"@eslint-react/eff": "2.0.0-beta.4",
|
|
45
|
+
"@eslint-react/kit": "2.0.0-beta.4",
|
|
46
|
+
"eslint-plugin-react-debug": "2.0.0-beta.4",
|
|
47
|
+
"@eslint-react/shared": "2.0.0-beta.4",
|
|
48
|
+
"eslint-plugin-react-dom": "2.0.0-beta.4",
|
|
49
|
+
"eslint-plugin-react-hooks-extra": "2.0.0-beta.4",
|
|
50
|
+
"eslint-plugin-react-naming-convention": "2.0.0-beta.4",
|
|
51
|
+
"eslint-plugin-react-web-api": "2.0.0-beta.4",
|
|
52
|
+
"eslint-plugin-react-x": "2.0.0-beta.4"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"tsup": "^8.5.0",
|