@eslint-react/core 1.30.0 → 1.30.1-next.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.
package/dist/index.d.mts CHANGED
@@ -292,7 +292,7 @@ declare function isReactHook(node: AST.TSESTreeFunction | _): boolean | undefine
292
292
  declare function isReactHookCall(node: TSESTree.Node | _): boolean;
293
293
  declare function isReactHookCallWithName(context: RuleContext, node: TSESTree.CallExpression | _): (name: string) => boolean;
294
294
  declare function isReactHookCallWithNameLoose(node: TSESTree.CallExpression | _): (name: string) => boolean;
295
- declare function isReactHookCallWithNameAlias(context: RuleContext, name: string, alias: string[]): (node: TSESTree.CallExpression) => boolean;
295
+ declare function isReactHookCallWithNameAlias(context: RuleContext, name: string, alias?: _ | string[]): (node: TSESTree.CallExpression) => boolean;
296
296
  declare function isUseEffectCallLoose(node: TSESTree.Node | _): boolean;
297
297
  declare const isUseCallbackCall: (context: Readonly<_typescript_eslint_utils_ts_eslint.RuleContext<string, readonly unknown[]>>, node: TSESTree.CallExpression | undefined) => boolean;
298
298
  declare const isUseContextCall: (context: Readonly<_typescript_eslint_utils_ts_eslint.RuleContext<string, readonly unknown[]>>, node: TSESTree.CallExpression | undefined) => boolean;
package/dist/index.d.ts CHANGED
@@ -292,7 +292,7 @@ declare function isReactHook(node: AST.TSESTreeFunction | _): boolean | undefine
292
292
  declare function isReactHookCall(node: TSESTree.Node | _): boolean;
293
293
  declare function isReactHookCallWithName(context: RuleContext, node: TSESTree.CallExpression | _): (name: string) => boolean;
294
294
  declare function isReactHookCallWithNameLoose(node: TSESTree.CallExpression | _): (name: string) => boolean;
295
- declare function isReactHookCallWithNameAlias(context: RuleContext, name: string, alias: string[]): (node: TSESTree.CallExpression) => boolean;
295
+ declare function isReactHookCallWithNameAlias(context: RuleContext, name: string, alias?: _ | string[]): (node: TSESTree.CallExpression) => boolean;
296
296
  declare function isUseEffectCallLoose(node: TSESTree.Node | _): boolean;
297
297
  declare const isUseCallbackCall: (context: Readonly<_typescript_eslint_utils_ts_eslint.RuleContext<string, readonly unknown[]>>, node: TSESTree.CallExpression | undefined) => boolean;
298
298
  declare const isUseContextCall: (context: Readonly<_typescript_eslint_utils_ts_eslint.RuleContext<string, readonly unknown[]>>, node: TSESTree.CallExpression | undefined) => boolean;
package/dist/index.js CHANGED
@@ -707,7 +707,7 @@ function isReactHookCallWithNameLoose(node) {
707
707
  }
708
708
  };
709
709
  }
710
- function isReactHookCallWithNameAlias(context, name, alias) {
710
+ function isReactHookCallWithNameAlias(context, name, alias = []) {
711
711
  const {
712
712
  importSource = DEFAULT_ESLINT_REACT_SETTINGS.importSource,
713
713
  skipImportCheck = true
package/dist/index.mjs CHANGED
@@ -680,7 +680,7 @@ function isReactHookCallWithNameLoose(node) {
680
680
  }
681
681
  };
682
682
  }
683
- function isReactHookCallWithNameAlias(context, name, alias) {
683
+ function isReactHookCallWithNameAlias(context, name, alias = []) {
684
684
  const {
685
685
  importSource = DEFAULT_ESLINT_REACT_SETTINGS.importSource,
686
686
  skipImportCheck = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "1.30.0",
3
+ "version": "1.30.1-next.0",
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,11 +41,11 @@
41
41
  "@typescript-eslint/utils": "^8.25.0",
42
42
  "birecord": "^0.1.1",
43
43
  "ts-pattern": "^5.6.2",
44
- "@eslint-react/ast": "1.30.0",
45
- "@eslint-react/eff": "1.30.0",
46
- "@eslint-react/jsx": "1.30.0",
47
- "@eslint-react/shared": "1.30.0",
48
- "@eslint-react/var": "1.30.0"
44
+ "@eslint-react/ast": "1.30.1-next.0",
45
+ "@eslint-react/eff": "1.30.1-next.0",
46
+ "@eslint-react/shared": "1.30.1-next.0",
47
+ "@eslint-react/var": "1.30.1-next.0",
48
+ "@eslint-react/jsx": "1.30.1-next.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "tsup": "^8.4.0",