@eslint-react/core 2.0.0-next.36 → 2.0.0-next.38
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/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -432,6 +432,9 @@ function isJsxLike(code, node, hint = DEFAULT_JSX_DETECTION_HINT) {
|
|
|
432
432
|
return !(hint & JSXDetectionHint.SkipStringLiteral);
|
|
433
433
|
}
|
|
434
434
|
case AST_NODE_TYPES.ArrayExpression: {
|
|
435
|
+
if (node.elements.length === 0) {
|
|
436
|
+
return !(hint & JSXDetectionHint.SkipEmptyArray);
|
|
437
|
+
}
|
|
435
438
|
if (hint & JSXDetectionHint.StrictArray) {
|
|
436
439
|
return node.elements.every((n) => isJsxLike(code, n, hint));
|
|
437
440
|
}
|
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.38",
|
|
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": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"@typescript-eslint/utils": "^8.33.1",
|
|
34
34
|
"birecord": "^0.1.1",
|
|
35
35
|
"ts-pattern": "^5.7.1",
|
|
36
|
-
"@eslint-react/ast": "2.0.0-next.
|
|
37
|
-
"@eslint-react/
|
|
38
|
-
"@eslint-react/
|
|
39
|
-
"@eslint-react/var": "2.0.0-next.
|
|
40
|
-
"@eslint-react/
|
|
36
|
+
"@eslint-react/ast": "2.0.0-next.38",
|
|
37
|
+
"@eslint-react/eff": "2.0.0-next.38",
|
|
38
|
+
"@eslint-react/kit": "2.0.0-next.38",
|
|
39
|
+
"@eslint-react/var": "2.0.0-next.38",
|
|
40
|
+
"@eslint-react/shared": "2.0.0-next.38"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"tsup": "^8.5.0",
|