@eslint-react/core 5.30.1 → 5.30.3
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 +1 -5
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -425,12 +425,8 @@ function isJSXLike(context, node, hint = DEFAULT_JSX_DETECTION_HINT) {
|
|
|
425
425
|
function visit(node) {
|
|
426
426
|
if (node == null) return false;
|
|
427
427
|
if (Check.isJSX(node)) return true;
|
|
428
|
+
if (Check.isTypeOrChainExpression(node)) return visit(node.expression);
|
|
428
429
|
switch (node.type) {
|
|
429
|
-
case AST_NODE_TYPES.TSAsExpression:
|
|
430
|
-
case AST_NODE_TYPES.TSSatisfiesExpression:
|
|
431
|
-
case AST_NODE_TYPES.TSTypeAssertion:
|
|
432
|
-
case AST_NODE_TYPES.TSNonNullExpression:
|
|
433
|
-
case AST_NODE_TYPES.ChainExpression: return visit(node.expression);
|
|
434
430
|
case AST_NODE_TYPES.AwaitExpression: return visit(node.argument);
|
|
435
431
|
case AST_NODE_TYPES.Literal: return match(node.value).with(P.nullish, () => !(hint & JSXDetectionHint.DoNotIncludeJSXWithNullValue)).with(P.boolean, () => !(hint & JSXDetectionHint.DoNotIncludeJSXWithBooleanValue)).with(P.string, () => !(hint & JSXDetectionHint.DoNotIncludeJSXWithStringValue)).with(P.number, () => !(hint & JSXDetectionHint.DoNotIncludeJSXWithNumberValue)).with(P.bigint, () => !(hint & JSXDetectionHint.DoNotIncludeJSXWithBigIntValue)).with(P.instanceOf(RegExp), () => false).exhaustive();
|
|
436
432
|
case AST_NODE_TYPES.TemplateLiteral: return !(hint & JSXDetectionHint.DoNotIncludeJSXWithStringValue);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "5.30.
|
|
3
|
+
"version": "5.30.3",
|
|
4
4
|
"description": "ESLint React's ESLint utility module for static analysis of React core APIs and patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -29,23 +29,23 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eslint-react/ast": "5.30.
|
|
33
|
-
"@eslint-react/eslint": "5.30.
|
|
34
|
-
"@eslint-react/jsx": "5.30.
|
|
35
|
-
"@eslint-react/shared": "5.30.
|
|
36
|
-
"@eslint-react/var": "5.30.
|
|
37
|
-
"@typescript-eslint/types": "^8.72.
|
|
38
|
-
"@typescript-eslint/utils": "^8.72.
|
|
32
|
+
"@eslint-react/ast": "5.30.3",
|
|
33
|
+
"@eslint-react/eslint": "5.30.3",
|
|
34
|
+
"@eslint-react/jsx": "5.30.3",
|
|
35
|
+
"@eslint-react/shared": "5.30.3",
|
|
36
|
+
"@eslint-react/var": "5.30.3",
|
|
37
|
+
"@typescript-eslint/types": "^8.72.2",
|
|
38
|
+
"@typescript-eslint/utils": "^8.72.2",
|
|
39
39
|
"ts-pattern": "^5.9.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@local/configs": "0.0.0",
|
|
43
43
|
"@local/eff": "0.0.0",
|
|
44
44
|
"@local/testkit": "0.0.0",
|
|
45
|
-
"@tsconfig/node20": "^20.1.
|
|
45
|
+
"@tsconfig/node20": "^20.1.11",
|
|
46
46
|
"@types/node": "^20.19.43",
|
|
47
47
|
"dedent": "^1.7.2",
|
|
48
|
-
"eslint": "^10.
|
|
48
|
+
"eslint": "^10.15.0",
|
|
49
49
|
"tsdown": "^0.23.7",
|
|
50
50
|
"typescript": "6.0.3",
|
|
51
51
|
"vitest": "^5.1.0"
|