eslint-plugin-react-x 2.12.1 → 2.12.2-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 +3 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -67,7 +67,7 @@ const rules$7 = {
|
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region package.json
|
|
69
69
|
var name$6 = "eslint-plugin-react-x";
|
|
70
|
-
var version = "2.12.
|
|
70
|
+
var version = "2.12.2-beta.0";
|
|
71
71
|
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/utils/create-rule.ts
|
|
@@ -1746,7 +1746,7 @@ var no_nested_component_definitions_default = createRule({
|
|
|
1746
1746
|
defaultOptions: []
|
|
1747
1747
|
});
|
|
1748
1748
|
function create$29(context) {
|
|
1749
|
-
const hint = core.ComponentDetectionHint.DoNotIncludeJsxWithNumberValue | core.ComponentDetectionHint.DoNotIncludeJsxWithBooleanValue | core.ComponentDetectionHint.DoNotIncludeJsxWithStringValue | core.ComponentDetectionHint.DoNotIncludeJsxWithUndefinedValue | core.ComponentDetectionHint.RequireBothSidesOfLogicalExpressionToBeJsx | core.ComponentDetectionHint.RequireBothBranchesOfConditionalExpressionToBeJsx | core.ComponentDetectionHint.DoNotIncludeFunctionDefinedInArrayPattern | core.ComponentDetectionHint.DoNotIncludeFunctionDefinedInArrayExpression | core.ComponentDetectionHint.DoNotIncludeFunctionDefinedAsArrayMapCallback;
|
|
1749
|
+
const hint = core.ComponentDetectionHint.DoNotIncludeJsxWithNumberValue | core.ComponentDetectionHint.DoNotIncludeJsxWithBooleanValue | core.ComponentDetectionHint.DoNotIncludeJsxWithNullValue | core.ComponentDetectionHint.DoNotIncludeJsxWithStringValue | core.ComponentDetectionHint.DoNotIncludeJsxWithUndefinedValue | core.ComponentDetectionHint.RequireBothSidesOfLogicalExpressionToBeJsx | core.ComponentDetectionHint.RequireBothBranchesOfConditionalExpressionToBeJsx | core.ComponentDetectionHint.DoNotIncludeFunctionDefinedInArrayPattern | core.ComponentDetectionHint.DoNotIncludeFunctionDefinedInArrayExpression | core.ComponentDetectionHint.DoNotIncludeFunctionDefinedAsArrayMapCallback;
|
|
1750
1750
|
const fCollector = core.useComponentCollector(context, { hint });
|
|
1751
1751
|
const cCollector = core.useComponentCollectorLegacy(context);
|
|
1752
1752
|
return defineRuleListener(fCollector.visitor, cCollector.visitor, { "Program:exit"(program) {
|
|
@@ -3101,7 +3101,7 @@ function create$8(context) {
|
|
|
3101
3101
|
const { ctx, visitor } = core.useComponentCollector(context);
|
|
3102
3102
|
return defineRuleListener(visitor, { "Program:exit"(program) {
|
|
3103
3103
|
for (const component of ctx.getAllComponents(program)) {
|
|
3104
|
-
if (component.name == null
|
|
3104
|
+
if (component.name == null || component.isExportDefaultDeclaration) continue;
|
|
3105
3105
|
const [props] = component.node.params;
|
|
3106
3106
|
if (props == null) continue;
|
|
3107
3107
|
if (props.type !== AST_NODE_TYPES.Identifier) continue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-react-x",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.2-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
|
"react",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"is-immutable-type": "^5.0.1",
|
|
46
46
|
"ts-api-utils": "^2.4.0",
|
|
47
47
|
"ts-pattern": "^5.9.0",
|
|
48
|
-
"@eslint-react/ast": "2.12.
|
|
49
|
-
"@eslint-react/
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/eff": "2.12.
|
|
52
|
-
"@eslint-react/
|
|
48
|
+
"@eslint-react/ast": "2.12.2-beta.0",
|
|
49
|
+
"@eslint-react/core": "2.12.2-beta.0",
|
|
50
|
+
"@eslint-react/shared": "2.12.2-beta.0",
|
|
51
|
+
"@eslint-react/eff": "2.12.2-beta.0",
|
|
52
|
+
"@eslint-react/var": "2.12.2-beta.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/react": "^19.2.13",
|