@unocss/eslint-plugin 0.53.5 → 0.53.6

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 CHANGED
@@ -80,7 +80,7 @@ const order = utils.ESLintUtils.RuleCreator((name) => name)({
80
80
  });
81
81
 
82
82
  const sortClasses = synckit.createSyncFn(node_path.join(dirs.distDir, "worker-sort.cjs"));
83
- const INGORE_ATTRIBUTES = ["style", "class", "classname", "value"];
83
+ const IGNORE_ATTRIBUTES = ["style", "class", "classname", "value"];
84
84
  const orderAttributify = utils.ESLintUtils.RuleCreator((name) => name)({
85
85
  name: "order-attributify",
86
86
  meta: {
@@ -100,7 +100,7 @@ const orderAttributify = utils.ESLintUtils.RuleCreator((name) => name)({
100
100
  const scriptVisitor = {};
101
101
  const templateBodyVisitor = {
102
102
  VStartTag(node) {
103
- const valueless = node.attributes.filter((i) => typeof i.key?.name === "string" && !INGORE_ATTRIBUTES.includes(i.key?.name?.toLowerCase()) && i.value == null);
103
+ const valueless = node.attributes.filter((i) => typeof i.key?.name === "string" && !IGNORE_ATTRIBUTES.includes(i.key?.name?.toLowerCase()) && i.value == null);
104
104
  if (!valueless.length)
105
105
  return;
106
106
  const input = valueless.map((i) => i.key.name).join(" ").trim();
package/dist/index.mjs CHANGED
@@ -74,7 +74,7 @@ const order = ESLintUtils.RuleCreator((name) => name)({
74
74
  });
75
75
 
76
76
  const sortClasses = createSyncFn(join(distDir, "worker-sort.cjs"));
77
- const INGORE_ATTRIBUTES = ["style", "class", "classname", "value"];
77
+ const IGNORE_ATTRIBUTES = ["style", "class", "classname", "value"];
78
78
  const orderAttributify = ESLintUtils.RuleCreator((name) => name)({
79
79
  name: "order-attributify",
80
80
  meta: {
@@ -94,7 +94,7 @@ const orderAttributify = ESLintUtils.RuleCreator((name) => name)({
94
94
  const scriptVisitor = {};
95
95
  const templateBodyVisitor = {
96
96
  VStartTag(node) {
97
- const valueless = node.attributes.filter((i) => typeof i.key?.name === "string" && !INGORE_ATTRIBUTES.includes(i.key?.name?.toLowerCase()) && i.value == null);
97
+ const valueless = node.attributes.filter((i) => typeof i.key?.name === "string" && !IGNORE_ATTRIBUTES.includes(i.key?.name?.toLowerCase()) && i.value == null);
98
98
  if (!valueless.length)
99
99
  return;
100
100
  const input = valueless.map((i) => i.key.name).join(" ").trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unocss/eslint-plugin",
3
- "version": "0.53.5",
3
+ "version": "0.53.6",
4
4
  "description": "ESLint plugin for UnoCSS",
5
5
  "author": "Anthony Fu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -39,11 +39,11 @@
39
39
  "@typescript-eslint/utils": "^5.61.0",
40
40
  "magic-string": "^0.30.1",
41
41
  "synckit": "^0.8.5",
42
- "@unocss/config": "0.53.5",
43
- "@unocss/core": "0.53.5"
42
+ "@unocss/config": "0.53.6",
43
+ "@unocss/core": "0.53.6"
44
44
  },
45
45
  "devDependencies": {
46
- "@unocss/eslint-plugin": "0.53.5"
46
+ "@unocss/eslint-plugin": "0.53.6"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "unbuild",