@eslint-react/core 5.2.4-next.3 → 5.2.4-next.5

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.d.ts CHANGED
@@ -1,10 +1,10 @@
1
1
  import { TSESTreeClass, TSESTreeDirective, TSESTreeFunction, TSESTreeMethodOrPropertyDefinition } from "@eslint-react/ast";
2
2
  import { TSESTree } from "@typescript-eslint/types";
3
- import { RuleContext } from "@eslint-react/eslint";
4
3
  import { RegExpLike } from "@eslint-react/shared";
5
- import { ESLintUtils, TSESTree as TSESTree$1 } from "@typescript-eslint/utils";
6
4
  import ts from "typescript";
5
+ import { RuleContext } from "@eslint-react/eslint";
7
6
  import { Scope } from "@typescript-eslint/scope-manager";
7
+ import { ESLintUtils } from "@typescript-eslint/utils";
8
8
 
9
9
  //#region src/api.d.ts
10
10
  declare namespace isAPI {
@@ -602,7 +602,7 @@ declare function isUseEffectCleanupCallback(node: TSESTree.Node | null): boolean
602
602
  declare namespace getHookCollector {
603
603
  type ReturnType = {
604
604
  api: {
605
- getAllHooks(node: TSESTree$1.Program): HookSemanticNode[];
605
+ getAllHooks(node: TSESTree.Program): HookSemanticNode[];
606
606
  };
607
607
  visitor: ESLintUtils.RuleListener;
608
608
  };
package/dist/index.js CHANGED
@@ -1,11 +1,9 @@
1
1
  import { Check, Extract, Traverse, is, isOneOf } from "@eslint-react/ast";
2
2
  import { resolveImportSource } from "@eslint-react/var";
3
3
  import { AST_NODE_TYPES } from "@typescript-eslint/types";
4
- import "@eslint-react/eslint";
5
4
  import { randomBytes } from "node:crypto";
6
5
  import { JsxDetectionHint, isJsxLike } from "@eslint-react/jsx";
7
6
  import { RE_COMPONENT_NAME, RE_COMPONENT_NAME_LOOSE } from "@eslint-react/shared";
8
- import { AST_NODE_TYPES as AST_NODE_TYPES$1 } from "@typescript-eslint/utils";
9
7
  import { P, isMatching, match } from "ts-pattern";
10
8
  import ts from "typescript";
11
9
 
@@ -971,7 +969,7 @@ function getHookCollector(context) {
971
969
  const entry = getCurrentEntry();
972
970
  if (entry == null) return;
973
971
  const { body } = entry.node;
974
- if (body.type === AST_NODE_TYPES$1.BlockStatement) return;
972
+ if (body.type === AST_NODE_TYPES.BlockStatement) return;
975
973
  entry.rets.push(body);
976
974
  },
977
975
  CallExpression(node) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "5.2.4-next.3",
3
+ "version": "5.2.4-next.5",
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": {
@@ -34,17 +34,17 @@
34
34
  "@typescript-eslint/types": "^8.58.2",
35
35
  "@typescript-eslint/utils": "^8.58.2",
36
36
  "ts-pattern": "^5.9.0",
37
- "@eslint-react/ast": "5.2.4-next.3",
38
- "@eslint-react/jsx": "5.2.4-next.3",
39
- "@eslint-react/shared": "5.2.4-next.3",
40
- "@eslint-react/var": "5.2.4-next.3",
41
- "@eslint-react/eslint": "5.2.4-next.3"
37
+ "@eslint-react/ast": "5.2.4-next.5",
38
+ "@eslint-react/jsx": "5.2.4-next.5",
39
+ "@eslint-react/shared": "5.2.4-next.5",
40
+ "@eslint-react/var": "5.2.4-next.5",
41
+ "@eslint-react/eslint": "5.2.4-next.5"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@typescript-eslint/typescript-estree": "^8.58.2",
45
45
  "tsdown": "^0.21.9",
46
- "@local/eff": "3.0.0-beta.72",
47
- "@local/configs": "0.0.0"
46
+ "@local/configs": "0.0.0",
47
+ "@local/eff": "3.0.0-beta.72"
48
48
  },
49
49
  "peerDependencies": {
50
50
  "eslint": "^10.2.0",