@unocss/eslint-plugin 65.4.2 → 65.5.0
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.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.d.ts +10 -10
- package/dist/index.mjs +1 -1
- package/dist/worker.mjs +1 -1
- package/package.json +7 -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" : void 0;
|
|
341
341
|
checkLiteral(obj, addSpace);
|
|
342
342
|
}
|
|
343
343
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
2
|
|
|
3
3
|
declare module '@typescript-eslint/utils/ts-eslint' {
|
|
4
4
|
interface SharedConfigurationSettings {
|
|
@@ -21,10 +21,10 @@ declare const _default: {
|
|
|
21
21
|
plugins: {
|
|
22
22
|
unocss: {
|
|
23
23
|
rules: {
|
|
24
|
-
order:
|
|
25
|
-
'order-attributify':
|
|
26
|
-
blocklist:
|
|
27
|
-
'enforce-class-compile':
|
|
24
|
+
order: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
25
|
+
'order-attributify': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
26
|
+
blocklist: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
27
|
+
'enforce-class-compile': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
};
|
|
@@ -35,10 +35,10 @@ declare const _default: {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
rules: {
|
|
38
|
-
order:
|
|
39
|
-
'order-attributify':
|
|
40
|
-
blocklist:
|
|
41
|
-
'enforce-class-compile':
|
|
38
|
+
order: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
39
|
+
'order-attributify': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
40
|
+
blocklist: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
41
|
+
'enforce-class-compile': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
2
|
|
|
3
3
|
declare module '@typescript-eslint/utils/ts-eslint' {
|
|
4
4
|
interface SharedConfigurationSettings {
|
|
@@ -21,10 +21,10 @@ declare const _default: {
|
|
|
21
21
|
plugins: {
|
|
22
22
|
unocss: {
|
|
23
23
|
rules: {
|
|
24
|
-
order:
|
|
25
|
-
'order-attributify':
|
|
26
|
-
blocklist:
|
|
27
|
-
'enforce-class-compile':
|
|
24
|
+
order: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
25
|
+
'order-attributify': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
26
|
+
blocklist: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
27
|
+
'enforce-class-compile': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
};
|
|
@@ -35,10 +35,10 @@ declare const _default: {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
rules: {
|
|
38
|
-
order:
|
|
39
|
-
'order-attributify':
|
|
40
|
-
blocklist:
|
|
41
|
-
'enforce-class-compile':
|
|
38
|
+
order: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
39
|
+
'order-attributify': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
40
|
+
blocklist: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
41
|
+
'enforce-class-compile': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts-eslint';
|
|
2
2
|
|
|
3
3
|
declare module '@typescript-eslint/utils/ts-eslint' {
|
|
4
4
|
interface SharedConfigurationSettings {
|
|
@@ -21,10 +21,10 @@ declare const _default: {
|
|
|
21
21
|
plugins: {
|
|
22
22
|
unocss: {
|
|
23
23
|
rules: {
|
|
24
|
-
order:
|
|
25
|
-
'order-attributify':
|
|
26
|
-
blocklist:
|
|
27
|
-
'enforce-class-compile':
|
|
24
|
+
order: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
25
|
+
'order-attributify': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
26
|
+
blocklist: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
27
|
+
'enforce-class-compile': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
30
|
};
|
|
@@ -35,11 +35,11 @@ declare const _default: {
|
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
37
|
rules: {
|
|
38
|
-
order:
|
|
39
|
-
'order-attributify':
|
|
40
|
-
blocklist:
|
|
41
|
-
'enforce-class-compile':
|
|
38
|
+
order: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
39
|
+
'order-attributify': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
40
|
+
blocklist: _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
41
|
+
'enforce-class-compile': _typescript_eslint_utils_ts_eslint.AnyRuleModule;
|
|
42
42
|
};
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
-
export
|
|
45
|
+
export = _default;
|
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" : void 0;
|
|
335
335
|
checkLiteral(obj, addSpace);
|
|
336
336
|
}
|
|
337
337
|
});
|
package/dist/worker.mjs
CHANGED
|
@@ -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 void 0;
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/eslint-plugin",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "65.
|
|
4
|
+
"version": "65.5.0",
|
|
5
5
|
"description": "ESLint plugin for UnoCSS",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"homepage": "https://unocss.dev",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/unocss/unocss",
|
|
12
|
+
"url": "git+https://github.com/unocss/unocss",
|
|
13
13
|
"directory": "packages-integrations/eslint-plugin"
|
|
14
14
|
},
|
|
15
15
|
"bugs": {
|
|
@@ -35,17 +35,17 @@
|
|
|
35
35
|
"node": ">=14"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@typescript-eslint/utils": "^8.
|
|
38
|
+
"@typescript-eslint/utils": "^8.24.0",
|
|
39
39
|
"magic-string": "^0.30.17",
|
|
40
40
|
"synckit": "^0.9.2",
|
|
41
|
-
"@unocss/core": "65.
|
|
42
|
-
"@unocss/config": "65.
|
|
43
|
-
"@unocss/rule-utils": "65.
|
|
41
|
+
"@unocss/core": "65.5.0",
|
|
42
|
+
"@unocss/config": "65.5.0",
|
|
43
|
+
"@unocss/rule-utils": "65.5.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"svelte-eslint-parser": "^0.42.0",
|
|
47
47
|
"vue-eslint-parser": "^9.4.3",
|
|
48
|
-
"@unocss/eslint-plugin": "65.
|
|
48
|
+
"@unocss/eslint-plugin": "65.5.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
51
|
"build": "unbuild",
|