@eslint-react/core 1.24.0-next.11 → 1.24.0-next.12

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
@@ -82,6 +82,13 @@ interface ComponentCollectorOptions {
82
82
  collectDisplayName?: boolean;
83
83
  collectHookCalls?: boolean;
84
84
  }
85
+ /**
86
+ * Get a ctx and listeners for the rule to collect function components
87
+ * @param context The ESLint rule context
88
+ * @param hint The hint to use
89
+ * @param options The options to use
90
+ * @returns The component collector
91
+ */
85
92
  declare function useComponentCollector(context: RuleContext, hint?: bigint, options?: ComponentCollectorOptions): {
86
93
  readonly ctx: {
87
94
  readonly getAllComponents: (node: TSESTree.Program) => Map<string, ERFunctionComponent>;
@@ -115,6 +122,10 @@ declare function useComponentCollector(context: RuleContext, hint?: bigint, opti
115
122
  };
116
123
  };
117
124
 
125
+ /**
126
+ * Get a ctx and listeners for the rule to collect class components
127
+ * @returns The context and listeners for the rule
128
+ */
118
129
  declare function useComponentCollectorLegacy(): {
119
130
  readonly ctx: {
120
131
  readonly getAllComponents: (node: TSESTree$1.Program) => Map<string, ERClassComponent>;
package/dist/index.d.ts CHANGED
@@ -82,6 +82,13 @@ interface ComponentCollectorOptions {
82
82
  collectDisplayName?: boolean;
83
83
  collectHookCalls?: boolean;
84
84
  }
85
+ /**
86
+ * Get a ctx and listeners for the rule to collect function components
87
+ * @param context The ESLint rule context
88
+ * @param hint The hint to use
89
+ * @param options The options to use
90
+ * @returns The component collector
91
+ */
85
92
  declare function useComponentCollector(context: RuleContext, hint?: bigint, options?: ComponentCollectorOptions): {
86
93
  readonly ctx: {
87
94
  readonly getAllComponents: (node: TSESTree.Program) => Map<string, ERFunctionComponent>;
@@ -115,6 +122,10 @@ declare function useComponentCollector(context: RuleContext, hint?: bigint, opti
115
122
  };
116
123
  };
117
124
 
125
+ /**
126
+ * Get a ctx and listeners for the rule to collect class components
127
+ * @returns The context and listeners for the rule
128
+ */
118
129
  declare function useComponentCollectorLegacy(): {
119
130
  readonly ctx: {
120
131
  readonly getAllComponents: (node: TSESTree$1.Program) => Map<string, ERClassComponent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "1.24.0-next.11",
3
+ "version": "1.24.0-next.12",
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": {
@@ -39,11 +39,11 @@
39
39
  "@typescript-eslint/utils": "^8.20.0",
40
40
  "birecord": "^0.1.1",
41
41
  "ts-pattern": "^5.6.0",
42
- "@eslint-react/ast": "1.24.0-next.11",
43
- "@eslint-react/eff": "1.24.0-next.11",
44
- "@eslint-react/jsx": "1.24.0-next.11",
45
- "@eslint-react/var": "1.24.0-next.11",
46
- "@eslint-react/shared": "1.24.0-next.11"
42
+ "@eslint-react/ast": "1.24.0-next.12",
43
+ "@eslint-react/eff": "1.24.0-next.12",
44
+ "@eslint-react/jsx": "1.24.0-next.12",
45
+ "@eslint-react/shared": "1.24.0-next.12",
46
+ "@eslint-react/var": "1.24.0-next.12"
47
47
  },
48
48
  "devDependencies": {
49
49
  "tsup": "^8.3.5",