@eslint-react/ast 2.3.13-beta.0 → 2.3.13-beta.2

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
@@ -79,7 +79,7 @@ declare function getClassId(node: TSESTreeClass): TSESTree.Identifier | unit;
79
79
  * Unwraps any type expressions to get the underlying JavaScript expression node.
80
80
  * Recursively processes nodes until a non-type expression is found.
81
81
  *
82
- * @param node - The AST node to unwrap
82
+ * @param node The AST node to unwrap
83
83
  * @returns The underlying JavaScript expression node
84
84
  */
85
85
  declare function getUnderlyingExpression(node: TSESTree.Node): Exclude<TSESTree.Node, TSESTreeTypeExpression>;
@@ -89,7 +89,7 @@ declare function getUnderlyingExpression(node: TSESTree.Node): Exclude<TSESTree.
89
89
  * Checks if the given expression is a 'this' expression.
90
90
  * Unwraps any type expressions before checking.
91
91
  *
92
- * @param node - The expression node to check
92
+ * @param node The expression node to check
93
93
  * @returns true if the expression is a ThisExpression, false otherwise
94
94
  */
95
95
  declare function isThisExpression(node: TSESTree.Expression): boolean;
@@ -149,7 +149,7 @@ type FunctionInitPath = readonly [TSESTree.FunctionDeclaration] | readonly [TSES
149
149
  * Identifies the initialization path of a function node in the AST.
150
150
  * Determines what kind of component declaration pattern the function belongs to.
151
151
  *
152
- * @param node - The function node to analyze
152
+ * @param node The function node to analyze
153
153
  * @returns The function initialization path or unit if not identifiable
154
154
  */
155
155
  declare function getFunctionInitPath(node: TSESTreeFunction): unit | FunctionInitPath;
@@ -157,8 +157,8 @@ declare function getFunctionInitPath(node: TSESTreeFunction): unit | FunctionIni
157
157
  * Checks if a specific function call exists in the function initialization path.
158
158
  * Useful for detecting HOCs like React.memo, React.forwardRef, etc.
159
159
  *
160
- * @param callName - The name of the call to check for (e.g., "memo", "forwardRef")
161
- * @param initPath - The function initialization path to search in
160
+ * @param callName The name of the call to check for (e.g., "memo", "forwardRef")
161
+ * @param initPath The function initialization path to search in
162
162
  * @returns True if the call exists in the path, false otherwise
163
163
  */
164
164
  declare function hasCallInFunctionInitPath(callName: string, initPath: FunctionInitPath): boolean;
package/dist/index.js CHANGED
@@ -204,7 +204,7 @@ function toStringFormat(node, getText) {
204
204
  * Unwraps any type expressions to get the underlying JavaScript expression node.
205
205
  * Recursively processes nodes until a non-type expression is found.
206
206
  *
207
- * @param node - The AST node to unwrap
207
+ * @param node The AST node to unwrap
208
208
  * @returns The underlying JavaScript expression node
209
209
  */
210
210
  function getUnderlyingExpression(node) {
@@ -218,7 +218,7 @@ function getUnderlyingExpression(node) {
218
218
  * Checks if the given expression is a 'this' expression.
219
219
  * Unwraps any type expressions before checking.
220
220
  *
221
- * @param node - The expression node to check
221
+ * @param node The expression node to check
222
222
  * @returns true if the expression is a ThisExpression, false otherwise
223
223
  */
224
224
  function isThisExpression(node) {
@@ -448,7 +448,7 @@ function getFunctionId(node) {
448
448
  * Identifies the initialization path of a function node in the AST.
449
449
  * Determines what kind of component declaration pattern the function belongs to.
450
450
  *
451
- * @param node - The function node to analyze
451
+ * @param node The function node to analyze
452
452
  * @returns The function initialization path or unit if not identifiable
453
453
  */
454
454
  function getFunctionInitPath(node) {
@@ -499,8 +499,8 @@ function getFunctionInitPath(node) {
499
499
  * Checks if a specific function call exists in the function initialization path.
500
500
  * Useful for detecting HOCs like React.memo, React.forwardRef, etc.
501
501
  *
502
- * @param callName - The name of the call to check for (e.g., "memo", "forwardRef")
503
- * @param initPath - The function initialization path to search in
502
+ * @param callName The name of the call to check for (e.g., "memo", "forwardRef")
503
+ * @param initPath The function initialization path to search in
504
504
  * @returns True if the call exists in the path, false otherwise
505
505
  */
506
506
  function hasCallInFunctionInitPath(callName, initPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/ast",
3
- "version": "2.3.13-beta.0",
3
+ "version": "2.3.13-beta.2",
4
4
  "description": "ESLint React's TSESTree AST utility module.",
5
5
  "homepage": "https://github.com/Rel1cx/eslint-react",
6
6
  "bugs": {
@@ -34,7 +34,7 @@
34
34
  "@typescript-eslint/typescript-estree": "^8.48.1",
35
35
  "@typescript-eslint/utils": "^8.48.1",
36
36
  "string-ts": "^2.3.1",
37
- "@eslint-react/eff": "2.3.13-beta.0"
37
+ "@eslint-react/eff": "2.3.13-beta.2"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "eslint": "^8.57.0 || ^9.0.0",