eslint-plugin-react-x 1.30.3-next.1 → 1.31.0-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/dist/index.js +9 -9
- package/dist/index.mjs +9 -9
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -136,7 +136,7 @@ var settings3 = {
|
|
|
136
136
|
|
|
137
137
|
// package.json
|
|
138
138
|
var name4 = "eslint-plugin-react-x";
|
|
139
|
-
var version = "1.
|
|
139
|
+
var version = "1.31.0-beta.0";
|
|
140
140
|
var createRule = shared.createRuleForPlugin("x");
|
|
141
141
|
|
|
142
142
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -929,7 +929,7 @@ var no_component_will_mount_default = createRule({
|
|
|
929
929
|
meta: {
|
|
930
930
|
type: "problem",
|
|
931
931
|
docs: {
|
|
932
|
-
description: "
|
|
932
|
+
description: "replace 'componentWillMount' with 'UNSAFE_componentWillMount'",
|
|
933
933
|
[Symbol.for("rule_features")]: RULE_FEATURES16
|
|
934
934
|
},
|
|
935
935
|
fixable: "code",
|
|
@@ -982,7 +982,7 @@ var no_component_will_receive_props_default = createRule({
|
|
|
982
982
|
meta: {
|
|
983
983
|
type: "problem",
|
|
984
984
|
docs: {
|
|
985
|
-
description: "
|
|
985
|
+
description: "replace 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'",
|
|
986
986
|
[Symbol.for("rule_features")]: RULE_FEATURES17
|
|
987
987
|
},
|
|
988
988
|
fixable: "code",
|
|
@@ -1035,7 +1035,7 @@ var no_component_will_update_default = createRule({
|
|
|
1035
1035
|
meta: {
|
|
1036
1036
|
type: "problem",
|
|
1037
1037
|
docs: {
|
|
1038
|
-
description: "
|
|
1038
|
+
description: "replace 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'",
|
|
1039
1039
|
[Symbol.for("rule_features")]: RULE_FEATURES18
|
|
1040
1040
|
},
|
|
1041
1041
|
fixable: "code",
|
|
@@ -1085,7 +1085,7 @@ var no_context_provider_default = createRule({
|
|
|
1085
1085
|
meta: {
|
|
1086
1086
|
type: "problem",
|
|
1087
1087
|
docs: {
|
|
1088
|
-
description: "
|
|
1088
|
+
description: "replace '<Context.Provider>' with '<Context>'",
|
|
1089
1089
|
[Symbol.for("rule_features")]: RULE_FEATURES19
|
|
1090
1090
|
},
|
|
1091
1091
|
fixable: "code",
|
|
@@ -1392,7 +1392,7 @@ var no_forward_ref_default = createRule({
|
|
|
1392
1392
|
meta: {
|
|
1393
1393
|
type: "problem",
|
|
1394
1394
|
docs: {
|
|
1395
|
-
description: "
|
|
1395
|
+
description: "replace 'forwardRef' with passing 'ref' as a prop",
|
|
1396
1396
|
[Symbol.for("rule_features")]: RULE_FEATURES25
|
|
1397
1397
|
},
|
|
1398
1398
|
fixable: "code",
|
|
@@ -2940,7 +2940,7 @@ var no_use_context_default = createRule({
|
|
|
2940
2940
|
meta: {
|
|
2941
2941
|
type: "problem",
|
|
2942
2942
|
docs: {
|
|
2943
|
-
description: "
|
|
2943
|
+
description: "replace 'useContext' with 'use'",
|
|
2944
2944
|
[Symbol.for("rule_features")]: RULE_FEATURES45
|
|
2945
2945
|
},
|
|
2946
2946
|
fixable: "code",
|
|
@@ -3357,7 +3357,7 @@ var prefer_shorthand_boolean_default = createRule({
|
|
|
3357
3357
|
meta: {
|
|
3358
3358
|
type: "problem",
|
|
3359
3359
|
docs: {
|
|
3360
|
-
description: "enforce
|
|
3360
|
+
description: "enforce the use of shorthand syntax for boolean attributes",
|
|
3361
3361
|
[Symbol.for("rule_features")]: RULE_FEATURES49
|
|
3362
3362
|
},
|
|
3363
3363
|
fixable: "code",
|
|
@@ -3398,7 +3398,7 @@ var prefer_shorthand_fragment_default = createRule({
|
|
|
3398
3398
|
meta: {
|
|
3399
3399
|
type: "problem",
|
|
3400
3400
|
docs: {
|
|
3401
|
-
description: "enforce
|
|
3401
|
+
description: "enforce the use of shorthand syntax for fragments",
|
|
3402
3402
|
[Symbol.for("rule_features")]: RULE_FEATURES50
|
|
3403
3403
|
},
|
|
3404
3404
|
fixable: "code",
|
package/dist/index.mjs
CHANGED
|
@@ -109,7 +109,7 @@ var settings3 = {
|
|
|
109
109
|
|
|
110
110
|
// package.json
|
|
111
111
|
var name4 = "eslint-plugin-react-x";
|
|
112
|
-
var version = "1.
|
|
112
|
+
var version = "1.31.0-beta.0";
|
|
113
113
|
var createRule = createRuleForPlugin("x");
|
|
114
114
|
|
|
115
115
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -902,7 +902,7 @@ var no_component_will_mount_default = createRule({
|
|
|
902
902
|
meta: {
|
|
903
903
|
type: "problem",
|
|
904
904
|
docs: {
|
|
905
|
-
description: "
|
|
905
|
+
description: "replace 'componentWillMount' with 'UNSAFE_componentWillMount'",
|
|
906
906
|
[Symbol.for("rule_features")]: RULE_FEATURES16
|
|
907
907
|
},
|
|
908
908
|
fixable: "code",
|
|
@@ -955,7 +955,7 @@ var no_component_will_receive_props_default = createRule({
|
|
|
955
955
|
meta: {
|
|
956
956
|
type: "problem",
|
|
957
957
|
docs: {
|
|
958
|
-
description: "
|
|
958
|
+
description: "replace 'componentWillReceiveProps' with 'UNSAFE_componentWillReceiveProps'",
|
|
959
959
|
[Symbol.for("rule_features")]: RULE_FEATURES17
|
|
960
960
|
},
|
|
961
961
|
fixable: "code",
|
|
@@ -1008,7 +1008,7 @@ var no_component_will_update_default = createRule({
|
|
|
1008
1008
|
meta: {
|
|
1009
1009
|
type: "problem",
|
|
1010
1010
|
docs: {
|
|
1011
|
-
description: "
|
|
1011
|
+
description: "replace 'componentWillUpdate' with 'UNSAFE_componentWillUpdate'",
|
|
1012
1012
|
[Symbol.for("rule_features")]: RULE_FEATURES18
|
|
1013
1013
|
},
|
|
1014
1014
|
fixable: "code",
|
|
@@ -1058,7 +1058,7 @@ var no_context_provider_default = createRule({
|
|
|
1058
1058
|
meta: {
|
|
1059
1059
|
type: "problem",
|
|
1060
1060
|
docs: {
|
|
1061
|
-
description: "
|
|
1061
|
+
description: "replace '<Context.Provider>' with '<Context>'",
|
|
1062
1062
|
[Symbol.for("rule_features")]: RULE_FEATURES19
|
|
1063
1063
|
},
|
|
1064
1064
|
fixable: "code",
|
|
@@ -1365,7 +1365,7 @@ var no_forward_ref_default = createRule({
|
|
|
1365
1365
|
meta: {
|
|
1366
1366
|
type: "problem",
|
|
1367
1367
|
docs: {
|
|
1368
|
-
description: "
|
|
1368
|
+
description: "replace 'forwardRef' with passing 'ref' as a prop",
|
|
1369
1369
|
[Symbol.for("rule_features")]: RULE_FEATURES25
|
|
1370
1370
|
},
|
|
1371
1371
|
fixable: "code",
|
|
@@ -2913,7 +2913,7 @@ var no_use_context_default = createRule({
|
|
|
2913
2913
|
meta: {
|
|
2914
2914
|
type: "problem",
|
|
2915
2915
|
docs: {
|
|
2916
|
-
description: "
|
|
2916
|
+
description: "replace 'useContext' with 'use'",
|
|
2917
2917
|
[Symbol.for("rule_features")]: RULE_FEATURES45
|
|
2918
2918
|
},
|
|
2919
2919
|
fixable: "code",
|
|
@@ -3330,7 +3330,7 @@ var prefer_shorthand_boolean_default = createRule({
|
|
|
3330
3330
|
meta: {
|
|
3331
3331
|
type: "problem",
|
|
3332
3332
|
docs: {
|
|
3333
|
-
description: "enforce
|
|
3333
|
+
description: "enforce the use of shorthand syntax for boolean attributes",
|
|
3334
3334
|
[Symbol.for("rule_features")]: RULE_FEATURES49
|
|
3335
3335
|
},
|
|
3336
3336
|
fixable: "code",
|
|
@@ -3371,7 +3371,7 @@ var prefer_shorthand_fragment_default = createRule({
|
|
|
3371
3371
|
meta: {
|
|
3372
3372
|
type: "problem",
|
|
3373
3373
|
docs: {
|
|
3374
|
-
description: "enforce
|
|
3374
|
+
description: "enforce the use of shorthand syntax for fragments",
|
|
3375
3375
|
[Symbol.for("rule_features")]: RULE_FEATURES50
|
|
3376
3376
|
},
|
|
3377
3377
|
fixable: "code",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.31.0-beta.0",
|
|
4
4
|
"description": "A set of composable linting rules for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -49,12 +49,12 @@
|
|
|
49
49
|
"compare-versions": "^6.1.1",
|
|
50
50
|
"string-ts": "^2.2.1",
|
|
51
51
|
"ts-pattern": "^5.6.2",
|
|
52
|
-
"@eslint-react/ast": "1.
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/jsx": "1.
|
|
56
|
-
"@eslint-react/shared": "1.
|
|
57
|
-
"@eslint-react/var": "1.
|
|
52
|
+
"@eslint-react/ast": "1.31.0-beta.0",
|
|
53
|
+
"@eslint-react/eff": "1.31.0-beta.0",
|
|
54
|
+
"@eslint-react/core": "1.31.0-beta.0",
|
|
55
|
+
"@eslint-react/jsx": "1.31.0-beta.0",
|
|
56
|
+
"@eslint-react/shared": "1.31.0-beta.0",
|
|
57
|
+
"@eslint-react/var": "1.31.0-beta.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/react": "^19.0.10",
|