@eslint-react/core 3.0.0-next.57 → 3.0.0-next.58

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.d.ts +3 -3
  2. package/package.json +5 -5
package/dist/index.d.ts CHANGED
@@ -496,7 +496,7 @@ type FindEnclosingComponentOrHookFilter = (n: TSESTree.Node, name: string | null
496
496
  * @param test Optional test function to customize component or hook identification
497
497
  * @returns The enclosing component or hook node, or `null` if none is ASAST.
498
498
  */
499
- declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.FunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | undefined;
499
+ declare function findEnclosingComponentOrHook(node: TSESTree.Node | unit, test?: FindEnclosingComponentOrHookFilter): TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclarationWithName | TSESTree.FunctionDeclarationWithOptionalName | TSESTree.FunctionExpression | undefined;
500
500
  //#endregion
501
501
  //#region src/hierarchy/is-inside-component-or-hook.d.ts
502
502
  /**
@@ -694,7 +694,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: ast.T
694
694
  readonly toStatic: () => string | number | bigint | boolean | RegExp | null;
695
695
  } | {
696
696
  readonly kind: "expression";
697
- readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
697
+ readonly node: TSESTree.JSXEmptyExpression | TSESTree.Expression;
698
698
  readonly toStatic: () => unknown;
699
699
  } | {
700
700
  readonly kind: "element";
@@ -702,7 +702,7 @@ declare function resolveJsxAttributeValue(context: RuleContext, attribute: ast.T
702
702
  readonly toStatic: () => undefined;
703
703
  } | {
704
704
  readonly kind: "spreadChild";
705
- readonly node: TSESTree.Expression | TSESTree.JSXEmptyExpression;
705
+ readonly node: TSESTree.JSXEmptyExpression | TSESTree.Expression;
706
706
  readonly toStatic: () => undefined;
707
707
  } | {
708
708
  readonly kind: "spreadProps";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "3.0.0-next.57",
3
+ "version": "3.0.0-next.58",
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,10 +34,10 @@
34
34
  "@typescript-eslint/types": "canary",
35
35
  "@typescript-eslint/utils": "canary",
36
36
  "ts-pattern": "^5.9.0",
37
- "@eslint-react/ast": "3.0.0-next.57",
38
- "@eslint-react/shared": "3.0.0-next.57",
39
- "@eslint-react/eff": "3.0.0-next.57",
40
- "@eslint-react/var": "3.0.0-next.57"
37
+ "@eslint-react/ast": "3.0.0-next.58",
38
+ "@eslint-react/eff": "3.0.0-next.58",
39
+ "@eslint-react/shared": "3.0.0-next.58",
40
+ "@eslint-react/var": "3.0.0-next.58"
41
41
  },
42
42
  "devDependencies": {
43
43
  "tsdown": "^0.21.0-beta.2",