@eslint-react/core 2.0.0-next.160 → 2.0.0-next.162
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 +3 -6
- package/dist/index.js +2 -6
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -463,7 +463,7 @@ declare function getAttributeValue(context: RuleContext, node: TSESTree$1.JSXAtt
|
|
|
463
463
|
kind: "lazy";
|
|
464
464
|
}>;
|
|
465
465
|
//#endregion
|
|
466
|
-
//#region src/jsx/jsx-detection
|
|
466
|
+
//#region src/jsx/jsx-detection.d.ts
|
|
467
467
|
/**
|
|
468
468
|
* BitFlags for configuring JSX detection behavior
|
|
469
469
|
* Uses BigInt for bit operations to support many flags
|
|
@@ -493,8 +493,6 @@ declare const JSXDetectionHint: {
|
|
|
493
493
|
* Skips undefined and boolean literals (common in React)
|
|
494
494
|
*/
|
|
495
495
|
declare const DEFAULT_JSX_DETECTION_HINT: bigint;
|
|
496
|
-
//#endregion
|
|
497
|
-
//#region src/jsx/jsx-detection.d.ts
|
|
498
496
|
/**
|
|
499
497
|
* Checks if a node is a `JSXText` or a `Literal` node
|
|
500
498
|
* @param node The AST node to check
|
|
@@ -592,13 +590,12 @@ declare function findParentAttribute(node: TSESTree.Node, test?: (node: TSESTree
|
|
|
592
590
|
//#endregion
|
|
593
591
|
//#region src/jsx/jsx-stringify.d.ts
|
|
594
592
|
/**
|
|
595
|
-
*
|
|
596
|
-
* Handles different JSX node types and returns their textual form
|
|
593
|
+
* Incomplete but sufficient stringification of JSX nodes for common use cases
|
|
597
594
|
*
|
|
598
595
|
* @param node - JSX node from TypeScript ESTree
|
|
599
596
|
* @returns String representation of the JSX node
|
|
600
597
|
*/
|
|
601
|
-
declare function stringifyJsx(node: TSESTree$1.JSXIdentifier | TSESTree$1.
|
|
598
|
+
declare function stringifyJsx(node: TSESTree$1.JSXIdentifier | TSESTree$1.JSXNamespacedName | TSESTree$1.JSXMemberExpression | TSESTree$1.JSXOpeningElement | TSESTree$1.JSXClosingElement | TSESTree$1.JSXOpeningFragment | TSESTree$1.JSXClosingFragment | TSESTree$1.JSXText): string;
|
|
602
599
|
//#endregion
|
|
603
600
|
//#region src/type/type-is.d.ts
|
|
604
601
|
/** @internal */
|
package/dist/index.js
CHANGED
|
@@ -355,8 +355,7 @@ function isReactHookId(id) {
|
|
|
355
355
|
//#endregion
|
|
356
356
|
//#region src/jsx/jsx-stringify.ts
|
|
357
357
|
/**
|
|
358
|
-
*
|
|
359
|
-
* Handles different JSX node types and returns their textual form
|
|
358
|
+
* Incomplete but sufficient stringification of JSX nodes for common use cases
|
|
360
359
|
*
|
|
361
360
|
* @param node - JSX node from TypeScript ESTree
|
|
362
361
|
* @returns String representation of the JSX node
|
|
@@ -471,7 +470,7 @@ function getAttributeValue(context, node, name) {
|
|
|
471
470
|
}
|
|
472
471
|
|
|
473
472
|
//#endregion
|
|
474
|
-
//#region src/jsx/jsx-detection
|
|
473
|
+
//#region src/jsx/jsx-detection.ts
|
|
475
474
|
/**
|
|
476
475
|
* Flags to control JSX detection behavior:
|
|
477
476
|
* - Skip* flags: Ignore specific node types when detecting JSX
|
|
@@ -496,9 +495,6 @@ const JSXDetectionHint = {
|
|
|
496
495
|
* Skips undefined and boolean literals (common in React)
|
|
497
496
|
*/
|
|
498
497
|
const DEFAULT_JSX_DETECTION_HINT = 0n | JSXDetectionHint.SkipUndefined | JSXDetectionHint.SkipBooleanLiteral;
|
|
499
|
-
|
|
500
|
-
//#endregion
|
|
501
|
-
//#region src/jsx/jsx-detection.ts
|
|
502
498
|
/**
|
|
503
499
|
* Checks if a node is a `JSXText` or a `Literal` node
|
|
504
500
|
* @param node The AST node to check
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.162",
|
|
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,11 +34,11 @@
|
|
|
34
34
|
"birecord": "^0.1.1",
|
|
35
35
|
"ts-api-utils": "^2.1.0",
|
|
36
36
|
"ts-pattern": "^5.8.0",
|
|
37
|
-
"@eslint-react/ast": "2.0.0-next.
|
|
38
|
-
"@eslint-react/eff": "2.0.0-next.
|
|
39
|
-
"@eslint-react/
|
|
40
|
-
"@eslint-react/
|
|
41
|
-
"@eslint-react/
|
|
37
|
+
"@eslint-react/ast": "2.0.0-next.162",
|
|
38
|
+
"@eslint-react/eff": "2.0.0-next.162",
|
|
39
|
+
"@eslint-react/shared": "2.0.0-next.162",
|
|
40
|
+
"@eslint-react/kit": "2.0.0-next.162",
|
|
41
|
+
"@eslint-react/var": "2.0.0-next.162"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"tsdown": "^0.14.2",
|