@eslint-react/core 1.42.2-next.2 → 1.42.2-next.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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -534,7 +534,7 @@ function getInstanceId(node, prev) {
|
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
function getRequireExpressionArguments(node) {
|
|
537
|
-
return tsPattern.match(node).with({ type: types.AST_NODE_TYPES.CallExpression, arguments: tsPattern.P.select(), callee: { type: types.AST_NODE_TYPES.Identifier, name: "require" } }, eff.identity).with({ type: types.AST_NODE_TYPES.MemberExpression, object: tsPattern.P.select() }, getRequireExpressionArguments).otherwise(() =>
|
|
537
|
+
return tsPattern.match(node).with({ type: types.AST_NODE_TYPES.CallExpression, arguments: tsPattern.P.select(), callee: { type: types.AST_NODE_TYPES.Identifier, name: "require" } }, eff.identity).with({ type: types.AST_NODE_TYPES.MemberExpression, object: tsPattern.P.select() }, getRequireExpressionArguments).otherwise(() => null);
|
|
538
538
|
}
|
|
539
539
|
function isInitializedFromReact(name, importSource, initialScope) {
|
|
540
540
|
if (name.toLowerCase() === "react") return true;
|
package/dist/index.mjs
CHANGED
|
@@ -507,7 +507,7 @@ function getInstanceId(node, prev) {
|
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
function getRequireExpressionArguments(node) {
|
|
510
|
-
return match(node).with({ type: AST_NODE_TYPES.CallExpression, arguments: P.select(), callee: { type: AST_NODE_TYPES.Identifier, name: "require" } }, identity).with({ type: AST_NODE_TYPES.MemberExpression, object: P.select() }, getRequireExpressionArguments).otherwise(() =>
|
|
510
|
+
return match(node).with({ type: AST_NODE_TYPES.CallExpression, arguments: P.select(), callee: { type: AST_NODE_TYPES.Identifier, name: "require" } }, identity).with({ type: AST_NODE_TYPES.MemberExpression, object: P.select() }, getRequireExpressionArguments).otherwise(() => null);
|
|
511
511
|
}
|
|
512
512
|
function isInitializedFromReact(name, importSource, initialScope) {
|
|
513
513
|
if (name.toLowerCase() === "react") return true;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.42.2-next.
|
|
3
|
+
"version": "1.42.2-next.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": {
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"@typescript-eslint/utils": "^8.29.1",
|
|
42
42
|
"birecord": "^0.1.1",
|
|
43
43
|
"ts-pattern": "^5.7.0",
|
|
44
|
-
"@eslint-react/
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/
|
|
48
|
-
"@eslint-react/shared": "1.42.2-next.
|
|
49
|
-
"@eslint-react/
|
|
44
|
+
"@eslint-react/ast": "1.42.2-next.4",
|
|
45
|
+
"@eslint-react/eff": "1.42.2-next.4",
|
|
46
|
+
"@eslint-react/kit": "1.42.2-next.4",
|
|
47
|
+
"@eslint-react/jsx": "1.42.2-next.4",
|
|
48
|
+
"@eslint-react/shared": "1.42.2-next.4",
|
|
49
|
+
"@eslint-react/var": "1.42.2-next.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"tsup": "^8.4.0",
|