@unocss/eslint-plugin 65.4.0 → 65.4.3
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 +1 -1
- package/dist/index.mjs +1 -1
- package/dist/worker.mjs +2 -2
- package/package.json +8 -7
package/dist/index.cjs
CHANGED
|
@@ -337,7 +337,7 @@ const order = createRule({
|
|
|
337
337
|
if (obj.type === "SvelteMustacheTag") {
|
|
338
338
|
checkExpressionRecursively(obj.expression);
|
|
339
339
|
} else if (obj.type === "SvelteLiteral") {
|
|
340
|
-
const addSpace = node.value?.[i - 1]?.type === "SvelteMustacheTag" ? "before" : node.value?.[i + 1]?.type === "SvelteMustacheTag" ? "after" :
|
|
340
|
+
const addSpace = node.value?.[i - 1]?.type === "SvelteMustacheTag" ? "before" : node.value?.[i + 1]?.type === "SvelteMustacheTag" ? "after" : undefined;
|
|
341
341
|
checkLiteral(obj, addSpace);
|
|
342
342
|
}
|
|
343
343
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -331,7 +331,7 @@ const order = createRule({
|
|
|
331
331
|
if (obj.type === "SvelteMustacheTag") {
|
|
332
332
|
checkExpressionRecursively(obj.expression);
|
|
333
333
|
} else if (obj.type === "SvelteLiteral") {
|
|
334
|
-
const addSpace = node.value?.[i - 1]?.type === "SvelteMustacheTag" ? "before" : node.value?.[i + 1]?.type === "SvelteMustacheTag" ? "after" :
|
|
334
|
+
const addSpace = node.value?.[i - 1]?.type === "SvelteMustacheTag" ? "before" : node.value?.[i + 1]?.type === "SvelteMustacheTag" ? "after" : undefined;
|
|
335
335
|
checkLiteral(obj, addSpace);
|
|
336
336
|
}
|
|
337
337
|
});
|
package/dist/worker.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import process from 'node:process';
|
|
2
|
-
import { loadConfig } from '@unocss/config';
|
|
3
2
|
import { parseVariantGroup, notNull, collapseVariantGroup, createGenerator } from '@unocss/core';
|
|
3
|
+
import { loadConfig } from '@unocss/config';
|
|
4
4
|
import { runAsWorker } from 'synckit';
|
|
5
5
|
|
|
6
6
|
async function sortRules(rules, uno) {
|
|
@@ -13,7 +13,7 @@ async function sortRules(rules, uno) {
|
|
|
13
13
|
const token = await uno.parseToken(i);
|
|
14
14
|
if (token == null) {
|
|
15
15
|
unknown.push(i);
|
|
16
|
-
return
|
|
16
|
+
return undefined;
|
|
17
17
|
}
|
|
18
18
|
const variantRank = (token[0][5]?.variantHandlers?.length || 0) * 1e5;
|
|
19
19
|
const order = token[0][0] + variantRank;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/eslint-plugin",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "65.4.
|
|
4
|
+
"version": "65.4.3",
|
|
5
5
|
"description": "ESLint plugin for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/antfu",
|
|
9
|
-
"homepage": "https://
|
|
9
|
+
"homepage": "https://unocss.dev",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
12
|
"url": "https://github.com/unocss/unocss",
|
|
13
|
-
"directory": "packages/eslint-plugin"
|
|
13
|
+
"directory": "packages-integrations/eslint-plugin"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/unocss/unocss/issues"
|
|
@@ -35,16 +35,17 @@
|
|
|
35
35
|
"node": ">=14"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@typescript-eslint/utils": "^8.
|
|
38
|
+
"@typescript-eslint/utils": "^8.21.0",
|
|
39
39
|
"magic-string": "^0.30.17",
|
|
40
40
|
"synckit": "^0.9.2",
|
|
41
|
-
"@unocss/
|
|
42
|
-
"@unocss/
|
|
41
|
+
"@unocss/core": "65.4.3",
|
|
42
|
+
"@unocss/config": "65.4.3",
|
|
43
|
+
"@unocss/rule-utils": "65.4.3"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"svelte-eslint-parser": "^0.42.0",
|
|
46
47
|
"vue-eslint-parser": "^9.4.3",
|
|
47
|
-
"@unocss/eslint-plugin": "65.4.
|
|
48
|
+
"@unocss/eslint-plugin": "65.4.3"
|
|
48
49
|
},
|
|
49
50
|
"scripts": {
|
|
50
51
|
"build": "unbuild",
|