@eslint-react/ast 5.8.2 → 5.8.4-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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -316,7 +316,7 @@ function findParent(node, test, stop) {
316
316
  while (current != null) {
317
317
  if (stop?.(current)) return null;
318
318
  if (test(current)) return current;
319
- if (current.type === "Program") return null;
319
+ if (current.type === AST_NODE_TYPES.Program) return null;
320
320
  current = current.parent;
321
321
  }
322
322
  return null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/ast",
3
- "version": "5.8.2",
3
+ "version": "5.8.4-beta.0",
4
4
  "description": "ESLint React's TSESTree AST utility module.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -40,8 +40,8 @@
40
40
  "tsdown": "^0.22.0",
41
41
  "typescript": "^6.0.3",
42
42
  "vitest": "^4.1.6",
43
- "@local/configs": "0.0.0",
44
- "@local/eff": "3.0.0-beta.72"
43
+ "@local/eff": "3.0.0-beta.72",
44
+ "@local/configs": "0.0.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "eslint": "^10.3.0",