@unocss/eslint-plugin 0.50.3 → 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 CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const url = require('url');
5
+ const node_url = require('node:url');
6
6
 
7
- const distDir = 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))));
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
@@ -1,4 +1,4 @@
1
- import { fileURLToPath } from 'url';
1
+ import { fileURLToPath } from 'node:url';
2
2
 
3
3
  const distDir = fileURLToPath(new URL("../dist", import.meta.url));
4
4
 
package/dist/index.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- const path = require('path');
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(path.join(dirs.distDir, "worker-sort.cjs"));
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(path.join(dirs.distDir, "worker-sort.cjs"));
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",
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.53.0",
40
- "@unocss/config": "0.50.3",
41
- "@unocss/core": "0.50.3",
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.3"
46
+ "@unocss/eslint-plugin": "0.50.4"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "unbuild",