@unocss/eslint-plugin 0.58.0 → 0.58.1
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 +7 -4
- package/dist/index.mjs +7 -4
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const utils = require('@typescript-eslint/utils');
|
|
4
3
|
const MagicString = require('magic-string');
|
|
5
4
|
const node_path = require('node:path');
|
|
6
5
|
const synckit = require('synckit');
|
|
6
|
+
const utils = require('@typescript-eslint/utils');
|
|
7
7
|
const dirs = require('./dirs.cjs');
|
|
8
8
|
require('node:url');
|
|
9
9
|
|
|
@@ -20,9 +20,12 @@ const configsRecommended = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
const syncAction = synckit.createSyncFn(node_path.join(dirs.distDir, "worker.cjs"));
|
|
23
|
+
const createRule = utils.ESLintUtils.RuleCreator(
|
|
24
|
+
() => "https://unocss.dev/integrations/eslint#rules"
|
|
25
|
+
);
|
|
23
26
|
|
|
24
27
|
const IGNORE_ATTRIBUTES = ["style", "class", "classname", "value"];
|
|
25
|
-
const orderAttributify =
|
|
28
|
+
const orderAttributify = createRule({
|
|
26
29
|
name: "order-attributify",
|
|
27
30
|
meta: {
|
|
28
31
|
type: "layout",
|
|
@@ -76,7 +79,7 @@ const orderAttributify = utils.ESLintUtils.RuleCreator((name) => name)({
|
|
|
76
79
|
const CLASS_FIELDS = ["class", "classname"];
|
|
77
80
|
const AST_NODES_WITH_QUOTES = ["Literal", "VLiteral"];
|
|
78
81
|
|
|
79
|
-
const order =
|
|
82
|
+
const order = createRule({
|
|
80
83
|
name: "order",
|
|
81
84
|
meta: {
|
|
82
85
|
type: "layout",
|
|
@@ -140,7 +143,7 @@ const order = utils.ESLintUtils.RuleCreator((name) => name)({
|
|
|
140
143
|
}
|
|
141
144
|
});
|
|
142
145
|
|
|
143
|
-
const blocklist =
|
|
146
|
+
const blocklist = createRule({
|
|
144
147
|
name: "blocklist",
|
|
145
148
|
meta: {
|
|
146
149
|
type: "problem",
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
1
|
import MagicString from 'magic-string';
|
|
3
2
|
import { join } from 'node:path';
|
|
4
3
|
import { createSyncFn } from 'synckit';
|
|
4
|
+
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
5
5
|
import { distDir } from './dirs.mjs';
|
|
6
6
|
import 'node:url';
|
|
7
7
|
|
|
@@ -14,9 +14,12 @@ const configsRecommended = {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const syncAction = createSyncFn(join(distDir, "worker.cjs"));
|
|
17
|
+
const createRule = ESLintUtils.RuleCreator(
|
|
18
|
+
() => "https://unocss.dev/integrations/eslint#rules"
|
|
19
|
+
);
|
|
17
20
|
|
|
18
21
|
const IGNORE_ATTRIBUTES = ["style", "class", "classname", "value"];
|
|
19
|
-
const orderAttributify =
|
|
22
|
+
const orderAttributify = createRule({
|
|
20
23
|
name: "order-attributify",
|
|
21
24
|
meta: {
|
|
22
25
|
type: "layout",
|
|
@@ -70,7 +73,7 @@ const orderAttributify = ESLintUtils.RuleCreator((name) => name)({
|
|
|
70
73
|
const CLASS_FIELDS = ["class", "classname"];
|
|
71
74
|
const AST_NODES_WITH_QUOTES = ["Literal", "VLiteral"];
|
|
72
75
|
|
|
73
|
-
const order =
|
|
76
|
+
const order = createRule({
|
|
74
77
|
name: "order",
|
|
75
78
|
meta: {
|
|
76
79
|
type: "layout",
|
|
@@ -134,7 +137,7 @@ const order = ESLintUtils.RuleCreator((name) => name)({
|
|
|
134
137
|
}
|
|
135
138
|
});
|
|
136
139
|
|
|
137
|
-
const blocklist =
|
|
140
|
+
const blocklist = createRule({
|
|
138
141
|
name: "blocklist",
|
|
139
142
|
meta: {
|
|
140
143
|
type: "problem",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/eslint-plugin",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.1",
|
|
4
4
|
"description": "ESLint plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"node": ">=14"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@typescript-eslint/utils": "^6.
|
|
37
|
+
"@typescript-eslint/utils": "^6.16.0",
|
|
38
38
|
"magic-string": "^0.30.5",
|
|
39
|
-
"synckit": "^0.8.
|
|
40
|
-
"@unocss/config": "0.58.
|
|
41
|
-
"@unocss/core": "0.58.
|
|
39
|
+
"synckit": "^0.8.8",
|
|
40
|
+
"@unocss/config": "0.58.1",
|
|
41
|
+
"@unocss/core": "0.58.1"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@unocss/eslint-plugin": "0.58.
|
|
44
|
+
"@unocss/eslint-plugin": "0.58.1"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "unbuild",
|