@unocss/eslint-plugin 66.1.0-beta.6 → 66.1.0-beta.7
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.cjs +2 -0
- package/dist/index.mjs +2 -0
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -313,6 +313,8 @@ const order = createRule({
|
|
|
313
313
|
if (typeof node.name.name === "string" && CLASS_FIELDS.includes(node.name.name.toLowerCase()) && node.value) {
|
|
314
314
|
if (node.value.type === "Literal")
|
|
315
315
|
checkLiteral(node.value);
|
|
316
|
+
else if (node.value.type === "JSXExpressionContainer" && node.value.expression.type === "Literal")
|
|
317
|
+
checkLiteral(node.value.expression);
|
|
316
318
|
}
|
|
317
319
|
},
|
|
318
320
|
SvelteAttribute(node) {
|
package/dist/index.mjs
CHANGED
|
@@ -307,6 +307,8 @@ const order = createRule({
|
|
|
307
307
|
if (typeof node.name.name === "string" && CLASS_FIELDS.includes(node.name.name.toLowerCase()) && node.value) {
|
|
308
308
|
if (node.value.type === "Literal")
|
|
309
309
|
checkLiteral(node.value);
|
|
310
|
+
else if (node.value.type === "JSXExpressionContainer" && node.value.expression.type === "Literal")
|
|
311
|
+
checkLiteral(node.value.expression);
|
|
310
312
|
}
|
|
311
313
|
},
|
|
312
314
|
SvelteAttribute(node) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/eslint-plugin",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "66.1.0-beta.
|
|
4
|
+
"version": "66.1.0-beta.7",
|
|
5
5
|
"description": "ESLint plugin for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"@typescript-eslint/utils": "^8.26.1",
|
|
39
39
|
"magic-string": "^0.30.17",
|
|
40
40
|
"synckit": "^0.9.2",
|
|
41
|
-
"@unocss/config": "66.1.0-beta.
|
|
42
|
-
"@unocss/core": "66.1.0-beta.
|
|
43
|
-
"@unocss/rule-utils": "66.1.0-beta.
|
|
41
|
+
"@unocss/config": "66.1.0-beta.7",
|
|
42
|
+
"@unocss/core": "66.1.0-beta.7",
|
|
43
|
+
"@unocss/rule-utils": "66.1.0-beta.7"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"svelte-eslint-parser": "^1.0.1",
|
|
47
47
|
"vue-eslint-parser": "^10.1.1",
|
|
48
|
-
"@unocss/eslint-plugin": "66.1.0-beta.
|
|
48
|
+
"@unocss/eslint-plugin": "66.1.0-beta.7"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "unbuild",
|