@eslint-react/core 5.20.6 → 5.20.8

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.js +5 -0
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -639,6 +639,11 @@ function isJsxLike(context, node, hint = DEFAULT_JSX_DETECTION_HINT) {
639
639
  if (node == null) return false;
640
640
  if (Check.isJSX(node)) return true;
641
641
  switch (node.type) {
642
+ case AST_NODE_TYPES.TSAsExpression:
643
+ case AST_NODE_TYPES.TSSatisfiesExpression:
644
+ case AST_NODE_TYPES.TSTypeAssertion:
645
+ case AST_NODE_TYPES.TSNonNullExpression: return visit(node.expression);
646
+ case AST_NODE_TYPES.AwaitExpression: return visit(node.argument);
642
647
  case AST_NODE_TYPES.Literal:
643
648
  switch (typeof node.value) {
644
649
  case "boolean": return !(hint & JsxDetectionHint.DoNotIncludeJsxWithBooleanValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-react/core",
3
- "version": "5.20.6",
3
+ "version": "5.20.8",
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": {
@@ -29,10 +29,10 @@
29
29
  "dist"
30
30
  ],
31
31
  "dependencies": {
32
- "@eslint-react/ast": "5.20.6",
33
- "@eslint-react/eslint": "5.20.6",
34
- "@eslint-react/shared": "5.20.6",
35
- "@eslint-react/var": "5.20.6",
32
+ "@eslint-react/ast": "5.20.8",
33
+ "@eslint-react/eslint": "5.20.8",
34
+ "@eslint-react/shared": "5.20.8",
35
+ "@eslint-react/var": "5.20.8",
36
36
  "@typescript-eslint/scope-manager": "^8.70.0",
37
37
  "@typescript-eslint/types": "^8.70.0",
38
38
  "@typescript-eslint/utils": "^8.70.0",