@eslint-react/core 5.18.2 → 5.18.4
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 -5
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -1223,9 +1223,7 @@ function isFunctionComponentDefinition(context, node, hint) {
|
|
|
1223
1223
|
case parentCallee != null && parentCallee.type === AST_NODE_TYPES.MemberExpression && parentCalleeName === "flatMap":
|
|
1224
1224
|
if (hint & FunctionComponentDetectionHint.DoNotIncludeFunctionDefinedAsArrayFlatMapCallback) return false;
|
|
1225
1225
|
break;
|
|
1226
|
-
case parent.type === AST_NODE_TYPES.CallExpression && getFunctionId(node) == null && !isFunctionComponentWrapperCall(context, parent) && !isCreateElementCall(context, parent):
|
|
1227
|
-
if (hint & FunctionComponentDetectionHint.DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback) return false;
|
|
1228
|
-
break;
|
|
1226
|
+
case parent.type === AST_NODE_TYPES.CallExpression && getFunctionId(node) == null && !isFunctionComponentWrapperCall(context, parent) && !isCreateElementCall(context, parent): if (hint & FunctionComponentDetectionHint.DoNotIncludeFunctionDefinedAsArbitraryCallExpressionCallback) return false;
|
|
1229
1227
|
}
|
|
1230
1228
|
const significantParent = Traverse.findParent(node, Check.isOneOf([
|
|
1231
1229
|
AST_NODE_TYPES.JSXExpressionContainer,
|
|
@@ -1788,8 +1786,7 @@ function getFullyQualifiedNameEx(checker, symbol) {
|
|
|
1788
1786
|
case ts.isMappedTypeNode(parent):
|
|
1789
1787
|
case ts.isObjectLiteralExpression(parent):
|
|
1790
1788
|
case ts.isIntersectionTypeNode(parent):
|
|
1791
|
-
case ts.isUnionTypeNode(parent):
|
|
1792
|
-
default: break;
|
|
1789
|
+
case ts.isUnionTypeNode(parent):
|
|
1793
1790
|
}
|
|
1794
1791
|
parent = parent.parent;
|
|
1795
1792
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "5.18.
|
|
3
|
+
"version": "5.18.4",
|
|
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,25 +29,25 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
33
|
-
"@typescript-eslint/types": "^8.
|
|
34
|
-
"@typescript-eslint/utils": "^8.
|
|
32
|
+
"@typescript-eslint/scope-manager": "^8.66.0",
|
|
33
|
+
"@typescript-eslint/types": "^8.66.0",
|
|
34
|
+
"@typescript-eslint/utils": "^8.66.0",
|
|
35
35
|
"ts-pattern": "^5.9.0",
|
|
36
|
-
"@eslint-react/ast": "5.18.
|
|
37
|
-
"@eslint-react/eslint": "5.18.
|
|
38
|
-
"@eslint-react/shared": "5.18.
|
|
39
|
-
"@eslint-react/var": "5.18.
|
|
36
|
+
"@eslint-react/ast": "5.18.4",
|
|
37
|
+
"@eslint-react/eslint": "5.18.4",
|
|
38
|
+
"@eslint-react/shared": "5.18.4",
|
|
39
|
+
"@eslint-react/var": "5.18.4"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@typescript-eslint/parser": "^8.
|
|
43
|
-
"@typescript-eslint/typescript-estree": "^8.
|
|
44
|
-
"eslint": "^10.8.
|
|
42
|
+
"@typescript-eslint/parser": "^8.66.0",
|
|
43
|
+
"@typescript-eslint/typescript-estree": "^8.66.0",
|
|
44
|
+
"eslint": "^10.8.1",
|
|
45
45
|
"tsdown": "^0.22.14",
|
|
46
46
|
"typescript": "6.0.3",
|
|
47
47
|
"vitest": "^4.1.10",
|
|
48
48
|
"@local/configs": "0.0.0",
|
|
49
|
-
"@local/
|
|
50
|
-
"@local/
|
|
49
|
+
"@local/testkit": "0.0.0",
|
|
50
|
+
"@local/eff": "0.0.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"eslint": "*",
|