@drskillissue/ganko 0.2.7 → 0.2.71
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/{chunk-WY5MMHK2.js → chunk-SVX3WRFV.js} +2 -1
- package/dist/chunk-SVX3WRFV.js.map +1 -0
- package/dist/eslint-plugin.cjs +1 -0
- package/dist/eslint-plugin.cjs.map +1 -1
- package/dist/eslint-plugin.js +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-WY5MMHK2.js.map +0 -1
package/dist/eslint-plugin.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -3975,6 +3975,7 @@ function getStaticStringFromJSXValue(node) {
|
|
|
3975
3975
|
const expression = node.expression;
|
|
3976
3976
|
if (!expression) return null;
|
|
3977
3977
|
if (import_typescript4.default.isStringLiteral(expression)) return expression.text;
|
|
3978
|
+
if (import_typescript4.default.isNumericLiteral(expression)) return expression.text;
|
|
3978
3979
|
if (import_typescript4.default.isNoSubstitutionTemplateLiteral(expression)) return expression.text;
|
|
3979
3980
|
if (import_typescript4.default.isTemplateExpression(expression) && expression.templateSpans.length === 0) {
|
|
3980
3981
|
return expression.head.text;
|