eslint-plugin-react-x 1.18.0 → 1.18.1-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 +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -41,7 +41,7 @@ var ts__default = /*#__PURE__*/_interopDefault(ts);
|
|
|
41
41
|
|
|
42
42
|
// package.json
|
|
43
43
|
var name = "eslint-plugin-react-x";
|
|
44
|
-
var version = "1.18.0";
|
|
44
|
+
var version = "1.18.1-beta.0";
|
|
45
45
|
var createRule = shared.createRuleForPlugin("x");
|
|
46
46
|
|
|
47
47
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -1132,6 +1132,7 @@ var no_forward_ref_default = createRule({
|
|
|
1132
1132
|
},
|
|
1133
1133
|
name: RULE_NAME25,
|
|
1134
1134
|
create(context) {
|
|
1135
|
+
if (!context.sourceCode.text.includes("forwardRef")) return {};
|
|
1135
1136
|
const { version: version2 } = shared.normalizeSettings(shared.decodeSettings(context.settings));
|
|
1136
1137
|
if (compareVersions.compare(version2, "19.0.0", "<")) return {};
|
|
1137
1138
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { getTypeImmutability, isUnknown, isImmutable, isReadonlyShallow, isReado
|
|
|
14
14
|
|
|
15
15
|
// package.json
|
|
16
16
|
var name = "eslint-plugin-react-x";
|
|
17
|
-
var version = "1.18.0";
|
|
17
|
+
var version = "1.18.1-beta.0";
|
|
18
18
|
var createRule = createRuleForPlugin("x");
|
|
19
19
|
|
|
20
20
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -1105,6 +1105,7 @@ var no_forward_ref_default = createRule({
|
|
|
1105
1105
|
},
|
|
1106
1106
|
name: RULE_NAME25,
|
|
1107
1107
|
create(context) {
|
|
1108
|
+
if (!context.sourceCode.text.includes("forwardRef")) return {};
|
|
1108
1109
|
const { version: version2 } = normalizeSettings(decodeSettings(context.settings));
|
|
1109
1110
|
if (compare(version2, "19.0.0", "<")) return {};
|
|
1110
1111
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "1.18.0",
|
|
3
|
+
"version": "1.18.1-beta.0",
|
|
4
4
|
"description": "A set of composable ESLint rules for libraries and frameworks that use React as a UI runtime.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"compare-versions": "^6.1.1",
|
|
50
50
|
"is-immutable-type": "^5.0.0",
|
|
51
51
|
"ts-pattern": "^5.5.0",
|
|
52
|
-
"@eslint-react/ast": "1.18.0",
|
|
53
|
-
"@eslint-react/core": "1.18.0",
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
58
|
-
"@eslint-react/var": "1.18.0"
|
|
52
|
+
"@eslint-react/ast": "1.18.1-beta.0",
|
|
53
|
+
"@eslint-react/core": "1.18.1-beta.0",
|
|
54
|
+
"@eslint-react/shared": "1.18.1-beta.0",
|
|
55
|
+
"@eslint-react/types": "1.18.1-beta.0",
|
|
56
|
+
"@eslint-react/jsx": "1.18.1-beta.0",
|
|
57
|
+
"@eslint-react/tools": "1.18.1-beta.0",
|
|
58
|
+
"@eslint-react/var": "1.18.1-beta.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^19.0.1",
|