@eslint-react/core 3.0.0-next.20 → 3.0.0-next.23

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 +4 -4
  2. package/package.json +6 -6
package/dist/index.d.ts CHANGED
@@ -209,7 +209,7 @@ interface SemanticNode {
209
209
  */
210
210
  interface SemanticFunc extends SemanticNode {
211
211
  /** The identifier of the function */
212
- id: ast.FunctionID | unit;
212
+ id: ast.FunctionID;
213
213
  /** The AST node of the function */
214
214
  node: ast.TSESTreeFunction;
215
215
  /** The name of the function */
@@ -234,7 +234,7 @@ interface FunctionComponentSemanticNode extends SemanticNode {
234
234
  /**
235
235
  * The identifier or identifier sequence of the component
236
236
  */
237
- id: unit | ast.FunctionID;
237
+ id: ast.FunctionID;
238
238
  /**
239
239
  * The kind of component
240
240
  */
@@ -397,7 +397,7 @@ declare function getComponentFlagFromInitPath(initPath: FunctionComponentSemanti
397
397
  * @param node The function node to analyze
398
398
  * @returns The function identifier or `unit` if not found
399
399
  */
400
- declare function getFunctionComponentId(context: RuleContext, node: ast.TSESTreeFunction): ast.FunctionID | unit;
400
+ declare function getFunctionComponentId(context: RuleContext, node: ast.TSESTreeFunction): ast.FunctionID;
401
401
  //#endregion
402
402
  //#region src/component/component-kind.d.ts
403
403
  type ComponentKind = "class-component" | "pure-component" | "function-component";
@@ -563,7 +563,7 @@ declare function isUseEffectCleanupCallback(node: TSESTree.Node | unit): boolean
563
563
  */
564
564
  interface HookSemanticNode extends SemanticNode {
565
565
  /** The identifier of the hook */
566
- id: ast.FunctionID | unit;
566
+ id: ast.FunctionID;
567
567
  /** The AST node of the hook */
568
568
  node: ast.TSESTreeFunction;
569
569
  /** The name of the hook */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "3.0.0-next.20",
3
+ "version": "3.0.0-next.23",
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.20",
38
- "@eslint-react/eff": "3.0.0-next.20",
39
- "@eslint-react/shared": "3.0.0-next.20",
40
- "@eslint-react/var": "3.0.0-next.20"
37
+ "@eslint-react/ast": "3.0.0-next.23",
38
+ "@eslint-react/shared": "3.0.0-next.23",
39
+ "@eslint-react/var": "3.0.0-next.23",
40
+ "@eslint-react/eff": "3.0.0-next.23"
41
41
  },
42
42
  "devDependencies": {
43
43
  "tsdown": "^0.20.3",
@@ -54,6 +54,6 @@
54
54
  "build": "tsdown --dts-resolve",
55
55
  "build:docs": "typedoc",
56
56
  "lint:publish": "publint",
57
- "lint:ts": "tsc --noEmit"
57
+ "lint:ts": "tsl"
58
58
  }
59
59
  }