@unocss/eslint-plugin 66.1.0-beta.1 → 66.1.0-beta.10

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 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.1",
4
+ "version": "66.1.0-beta.10",
5
5
  "description": "ESLint plugin for UnoCSS",
6
6
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -35,17 +35,17 @@
35
35
  "node": ">=14"
36
36
  },
37
37
  "dependencies": {
38
- "@typescript-eslint/utils": "^8.24.0",
38
+ "@typescript-eslint/utils": "^8.28.0",
39
39
  "magic-string": "^0.30.17",
40
40
  "synckit": "^0.9.2",
41
- "@unocss/core": "66.1.0-beta.1",
42
- "@unocss/config": "66.1.0-beta.1",
43
- "@unocss/rule-utils": "66.1.0-beta.1"
41
+ "@unocss/core": "66.1.0-beta.10",
42
+ "@unocss/config": "66.1.0-beta.10",
43
+ "@unocss/rule-utils": "66.1.0-beta.10"
44
44
  },
45
45
  "devDependencies": {
46
- "svelte-eslint-parser": "^0.42.0",
47
- "vue-eslint-parser": "^9.4.3",
48
- "@unocss/eslint-plugin": "66.1.0-beta.1"
46
+ "svelte-eslint-parser": "^1.1.1",
47
+ "vue-eslint-parser": "^10.1.1",
48
+ "@unocss/eslint-plugin": "66.1.0-beta.10"
49
49
  },
50
50
  "scripts": {
51
51
  "build": "unbuild",