@eslint-react/core 1.51.0 → 1.51.1-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.js +3 -0
- package/dist/index.mjs +3 -0
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -431,6 +431,9 @@ function isJsxLike(code, node, hint = DEFAULT_JSX_DETECTION_HINT) {
|
|
|
431
431
|
return !(hint & JSXDetectionHint.SkipStringLiteral);
|
|
432
432
|
}
|
|
433
433
|
case types.AST_NODE_TYPES.ArrayExpression: {
|
|
434
|
+
if (node.elements.length === 0) {
|
|
435
|
+
return !(hint & JSXDetectionHint.SkipEmptyArray);
|
|
436
|
+
}
|
|
434
437
|
if (hint & JSXDetectionHint.StrictArray) {
|
|
435
438
|
return node.elements.every((n) => isJsxLike(code, n, hint));
|
|
436
439
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -405,6 +405,9 @@ function isJsxLike(code, node, hint = DEFAULT_JSX_DETECTION_HINT) {
|
|
|
405
405
|
return !(hint & JSXDetectionHint.SkipStringLiteral);
|
|
406
406
|
}
|
|
407
407
|
case AST_NODE_TYPES.ArrayExpression: {
|
|
408
|
+
if (node.elements.length === 0) {
|
|
409
|
+
return !(hint & JSXDetectionHint.SkipEmptyArray);
|
|
410
|
+
}
|
|
408
411
|
if (hint & JSXDetectionHint.StrictArray) {
|
|
409
412
|
return node.elements.every((n) => isJsxLike(code, n, hint));
|
|
410
413
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/core",
|
|
3
|
-
"version": "1.51.
|
|
3
|
+
"version": "1.51.1-beta.2",
|
|
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": {
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@typescript-eslint/utils": "^8.33.1",
|
|
42
42
|
"birecord": "^0.1.1",
|
|
43
43
|
"ts-pattern": "^5.7.1",
|
|
44
|
-
"@eslint-react/ast": "1.51.
|
|
45
|
-
"@eslint-react/kit": "1.51.
|
|
46
|
-
"@eslint-react/
|
|
47
|
-
"@eslint-react/var": "1.51.
|
|
48
|
-
"@eslint-react/
|
|
44
|
+
"@eslint-react/ast": "1.51.1-beta.2",
|
|
45
|
+
"@eslint-react/kit": "1.51.1-beta.2",
|
|
46
|
+
"@eslint-react/eff": "1.51.1-beta.2",
|
|
47
|
+
"@eslint-react/var": "1.51.1-beta.2",
|
|
48
|
+
"@eslint-react/shared": "1.51.1-beta.2"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"tsup": "^8.5.0",
|