@eslint-react/jsx 5.30.0-beta.22 → 5.30.0-beta.24
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 +0 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -271,7 +271,6 @@ function getStaticPropertyName(context, property) {
|
|
|
271
271
|
if (!property.computed) {
|
|
272
272
|
if (Check.isIdentifier(key)) return key.name;
|
|
273
273
|
if (key.type === AST_NODE_TYPES.Literal && typeof key.value === "string") return key.value;
|
|
274
|
-
if (key.type === AST_NODE_TYPES.TemplateLiteral && key.expressions.length === 0) return key.quasis[0]?.value.cooked ?? key.quasis[0]?.value.raw ?? null;
|
|
275
274
|
return null;
|
|
276
275
|
}
|
|
277
276
|
const staticValue = getStaticValue(key, context.sourceCode.getScope(key));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/jsx",
|
|
3
|
-
"version": "5.30.0-beta.
|
|
3
|
+
"version": "5.30.0-beta.24",
|
|
4
4
|
"description": "ESLint React's TSESTree JSX utility module for static analysis of JSX patterns.",
|
|
5
5
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
6
6
|
"bugs": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eslint-react/ast": "5.30.0-beta.
|
|
33
|
-
"@eslint-react/eslint": "5.30.0-beta.
|
|
32
|
+
"@eslint-react/ast": "5.30.0-beta.24",
|
|
33
|
+
"@eslint-react/eslint": "5.30.0-beta.24",
|
|
34
34
|
"@typescript-eslint/types": "^8.72.1",
|
|
35
35
|
"@typescript-eslint/utils": "^8.72.1"
|
|
36
36
|
},
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@tsconfig/node20": "^20.1.10",
|
|
42
42
|
"@types/node": "^20.19.43",
|
|
43
43
|
"eslint": "^10.14.0",
|
|
44
|
-
"tsdown": "^0.23.
|
|
44
|
+
"tsdown": "^0.23.5",
|
|
45
45
|
"typescript": "6.0.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|