@unocss/eslint-plugin 0.50.2 → 0.50.4
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/dirs.cjs +2 -2
- package/dist/dirs.mjs +1 -1
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +2 -2
- package/package.json +6 -6
package/dist/dirs.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const
|
|
5
|
+
const node_url = require('node:url');
|
|
6
6
|
|
|
7
|
-
const distDir =
|
|
7
|
+
const distDir = node_url.fileURLToPath(new URL("../dist", (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('dirs.cjs', document.baseURI).href))));
|
|
8
8
|
|
|
9
9
|
exports.distDir = distDir;
|
package/dist/dirs.mjs
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const node_path = require('node:path');
|
|
4
4
|
const utils = require('@typescript-eslint/utils');
|
|
5
5
|
const synckit = require('synckit');
|
|
6
6
|
const dirs = require('./dirs.cjs');
|
|
7
7
|
const MagicString = require('magic-string');
|
|
8
|
-
require('url');
|
|
8
|
+
require('node:url');
|
|
9
9
|
|
|
10
10
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
11
11
|
|
|
@@ -13,7 +13,7 @@ const MagicString__default = /*#__PURE__*/_interopDefaultLegacy(MagicString);
|
|
|
13
13
|
|
|
14
14
|
const CLASS_FIELDS = ["class", "classname"];
|
|
15
15
|
|
|
16
|
-
const sortClasses$1 = synckit.createSyncFn(
|
|
16
|
+
const sortClasses$1 = synckit.createSyncFn(node_path.join(dirs.distDir, "worker-sort.cjs"));
|
|
17
17
|
const order = utils.ESLintUtils.RuleCreator((name) => name)({
|
|
18
18
|
name: "order",
|
|
19
19
|
meta: {
|
|
@@ -69,7 +69,7 @@ const order = utils.ESLintUtils.RuleCreator((name) => name)({
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
|
|
72
|
-
const sortClasses = synckit.createSyncFn(
|
|
72
|
+
const sortClasses = synckit.createSyncFn(node_path.join(dirs.distDir, "worker-sort.cjs"));
|
|
73
73
|
const INGORE_ATTRIBUTES = ["style", "class", "classname", "value"];
|
|
74
74
|
const orderAttributify = utils.ESLintUtils.RuleCreator((name) => name)({
|
|
75
75
|
name: "order-attributify",
|
package/dist/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { join } from 'path';
|
|
1
|
+
import { join } from 'node:path';
|
|
2
2
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
3
3
|
import { createSyncFn } from 'synckit';
|
|
4
4
|
import { distDir } from './dirs.mjs';
|
|
5
5
|
import MagicString from 'magic-string';
|
|
6
|
-
import 'url';
|
|
6
|
+
import 'node:url';
|
|
7
7
|
|
|
8
8
|
const CLASS_FIELDS = ["class", "classname"];
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unocss/eslint-plugin",
|
|
3
|
-
"version": "0.50.
|
|
3
|
+
"version": "0.50.4",
|
|
4
4
|
"description": "ESLint plugin for UnoCSS",
|
|
5
5
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"node": ">=14"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@typescript-eslint/utils": "^5.
|
|
40
|
-
"@unocss/config": "0.50.2",
|
|
41
|
-
"@unocss/core": "0.50.2",
|
|
39
|
+
"@typescript-eslint/utils": "^5.54.0",
|
|
42
40
|
"magic-string": "^0.30.0",
|
|
43
|
-
"synckit": "^0.8.5"
|
|
41
|
+
"synckit": "^0.8.5",
|
|
42
|
+
"@unocss/config": "0.50.4",
|
|
43
|
+
"@unocss/core": "0.50.4"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@unocss/eslint-plugin": "0.50.
|
|
46
|
+
"@unocss/eslint-plugin": "0.50.4"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "unbuild",
|