eslint-plugin-react-x 1.48.2-beta.0 → 1.48.2-next.1
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 +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -141,7 +141,7 @@ var settings3 = {
|
|
|
141
141
|
|
|
142
142
|
// package.json
|
|
143
143
|
var name4 = "eslint-plugin-react-x";
|
|
144
|
-
var version = "1.48.2-
|
|
144
|
+
var version = "1.48.2-next.1";
|
|
145
145
|
var createRule = utils.ESLintUtils.RuleCreator(shared.getDocsUrl("x"));
|
|
146
146
|
|
|
147
147
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -2636,7 +2636,7 @@ function create45(context) {
|
|
|
2636
2636
|
if (value?.type !== types.AST_NODE_TYPES.JSXExpressionContainer) return;
|
|
2637
2637
|
const valueExpression = value.expression;
|
|
2638
2638
|
const initialScope = context.sourceCode.getScope(valueExpression);
|
|
2639
|
-
const construction = VAR2__namespace.
|
|
2639
|
+
const construction = VAR2__namespace.getConstruction(valueExpression, initialScope);
|
|
2640
2640
|
if (construction == null) return;
|
|
2641
2641
|
if (ER25__namespace.isReactHookCall(construction.node)) {
|
|
2642
2642
|
return;
|
|
@@ -2710,7 +2710,7 @@ function create46(context) {
|
|
|
2710
2710
|
const { value } = prop;
|
|
2711
2711
|
const { right } = value;
|
|
2712
2712
|
const initialScope = context.sourceCode.getScope(value);
|
|
2713
|
-
const construction = VAR2__namespace.
|
|
2713
|
+
const construction = VAR2__namespace.getConstruction(
|
|
2714
2714
|
value,
|
|
2715
2715
|
initialScope,
|
|
2716
2716
|
VAR2__namespace.ConstructionDetectionHint.StrictCallExpression
|
package/dist/index.mjs
CHANGED
|
@@ -114,7 +114,7 @@ var settings3 = {
|
|
|
114
114
|
|
|
115
115
|
// package.json
|
|
116
116
|
var name4 = "eslint-plugin-react-x";
|
|
117
|
-
var version = "1.48.2-
|
|
117
|
+
var version = "1.48.2-next.1";
|
|
118
118
|
var createRule = ESLintUtils.RuleCreator(getDocsUrl("x"));
|
|
119
119
|
|
|
120
120
|
// src/rules/avoid-shorthand-boolean.ts
|
|
@@ -2609,7 +2609,7 @@ function create45(context) {
|
|
|
2609
2609
|
if (value?.type !== AST_NODE_TYPES.JSXExpressionContainer) return;
|
|
2610
2610
|
const valueExpression = value.expression;
|
|
2611
2611
|
const initialScope = context.sourceCode.getScope(valueExpression);
|
|
2612
|
-
const construction = VAR2.
|
|
2612
|
+
const construction = VAR2.getConstruction(valueExpression, initialScope);
|
|
2613
2613
|
if (construction == null) return;
|
|
2614
2614
|
if (ER25.isReactHookCall(construction.node)) {
|
|
2615
2615
|
return;
|
|
@@ -2683,7 +2683,7 @@ function create46(context) {
|
|
|
2683
2683
|
const { value } = prop;
|
|
2684
2684
|
const { right } = value;
|
|
2685
2685
|
const initialScope = context.sourceCode.getScope(value);
|
|
2686
|
-
const construction = VAR2.
|
|
2686
|
+
const construction = VAR2.getConstruction(
|
|
2687
2687
|
value,
|
|
2688
2688
|
initialScope,
|
|
2689
2689
|
VAR2.ConstructionDetectionHint.StrictCallExpression
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "1.48.2-
|
|
3
|
+
"version": "1.48.2-next.1",
|
|
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",
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"is-immutable-type": "^5.0.1",
|
|
51
51
|
"string-ts": "^2.2.1",
|
|
52
52
|
"ts-pattern": "^5.7.0",
|
|
53
|
-
"@eslint-react/
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"@eslint-react/
|
|
56
|
-
"@eslint-react/
|
|
57
|
-
"@eslint-react/
|
|
58
|
-
"@eslint-react/
|
|
53
|
+
"@eslint-react/ast": "1.48.2-next.1",
|
|
54
|
+
"@eslint-react/core": "1.48.2-next.1",
|
|
55
|
+
"@eslint-react/eff": "1.48.2-next.1",
|
|
56
|
+
"@eslint-react/kit": "1.48.2-next.1",
|
|
57
|
+
"@eslint-react/shared": "1.48.2-next.1",
|
|
58
|
+
"@eslint-react/var": "1.48.2-next.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/react": "^19.1.2",
|