@eslint-react/var 5.8.5-next.2 → 5.8.6

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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +9 -9
package/dist/index.js CHANGED
@@ -306,7 +306,7 @@ function resolveImportSource(name, initialScope, visited = /* @__PURE__ */ new S
306
306
  if (init.type === AST_NODE_TYPES.MemberExpression && init.object.type === AST_NODE_TYPES.Identifier) return resolveImportSource(init.object.name, initialScope, visited);
307
307
  if (init.type === AST_NODE_TYPES.Identifier) return resolveImportSource(init.name, initialScope, visited);
308
308
  const arg0 = getRequireExpressionArguments(init)?.[0];
309
- if (arg0 == null || !Check.isLiteral("string")(arg0)) return null;
309
+ if (arg0 == null || !Check.isStringLiteral(arg0)) return null;
310
310
  return arg0.value;
311
311
  }
312
312
  if (parent?.type === AST_NODE_TYPES.ImportDeclaration) return parent.source.value;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/var",
3
- "version": "5.8.5-next.2",
3
+ "version": "5.8.6",
4
4
  "description": "ESLint React's TSESTree AST utility module for static analysis of variables.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -29,19 +29,19 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@typescript-eslint/scope-manager": "^8.59.4",
33
- "@typescript-eslint/types": "^8.59.4",
34
- "@typescript-eslint/utils": "^8.59.4",
32
+ "@typescript-eslint/scope-manager": "^8.60.0",
33
+ "@typescript-eslint/types": "^8.60.0",
34
+ "@typescript-eslint/utils": "^8.60.0",
35
35
  "ts-pattern": "^5.9.0",
36
- "@eslint-react/ast": "5.8.5-next.2",
37
- "@eslint-react/eslint": "5.8.5-next.2"
36
+ "@eslint-react/ast": "5.8.6",
37
+ "@eslint-react/eslint": "5.8.6"
38
38
  },
39
39
  "devDependencies": {
40
- "@typescript-eslint/parser": "^8.59.4",
41
- "@typescript-eslint/typescript-estree": "^8.59.4",
40
+ "@typescript-eslint/parser": "^8.60.0",
41
+ "@typescript-eslint/typescript-estree": "^8.60.0",
42
42
  "eslint": "^10.4.0",
43
43
  "tsdown": "^0.22.0",
44
- "typescript": "^6.0.3",
44
+ "typescript": "5.9.3",
45
45
  "vitest": "^4.1.7",
46
46
  "@local/configs": "0.0.0",
47
47
  "@local/eff": "3.0.0-beta.72"