diff --git a/dist/vue-mess-detector.es.js b/dist/vue-mess-detector.es.js index 2bac08bf..22736ead 100644 --- a/dist/vue-mess-detector.es.js +++ b/dist/vue-mess-detector.es.js @@ -2,7 +2,7 @@ import ae from "node:fs/promises"; import oe from "node:path"; import vn from "yargs"; import { format as Vt, inspect as On } from "util"; -import { normalize as An, resolve as le, dirname as Ie, basename as xn, extname as Cn, relative as Sn } from "path"; +import { normalize as An, resolve as le, dirname as Ie, basename as xn, extname as Sn, relative as Cn } from "path"; import { readFileSync as vt, statSync as Gt, readdirSync as _n, writeFile as Nn } from "fs"; import { notStrictEqual as jn, strictEqual as Rn } from "assert"; import { fileURLToPath as Ln } from "url"; @@ -234,7 +234,7 @@ class Mn { } else je(a); } - Ct(F, !0), Ct(F, !1), fn(F), hn(), St(F, f.aliases, b, !0), pn(F), h["set-placeholder-key"] && mn(F), Object.keys(f.counts).forEach(function(r) { + St(F, !0), St(F, !1), fn(F), hn(), Ct(F, f.aliases, b, !0), pn(F), h["set-placeholder-key"] && mn(F), Object.keys(f.counts).forEach(function(r) { ue(F, r.split(".")) || R(r, 0); }), _ && $e.length && (F[N] = []), $e.forEach(function(r) { F[N].push(r); @@ -323,7 +323,7 @@ class Mn { } function fn(r) { const a = /* @__PURE__ */ Object.create(null); - St(a, f.aliases, b), Object.keys(f.configs).forEach(function(p) { + Ct(a, f.aliases, b), Object.keys(f.configs).forEach(function(p) { const u = r[p] || a[p]; if (u) try { @@ -358,7 +358,7 @@ class Mn { Le(r); }); } - function Ct(r, a) { + function St(r, a) { if (typeof v > "u") return; const p = typeof v == "string" ? v : "", u = ee.env(); @@ -391,7 +391,7 @@ class Mn { ~a.indexOf(".") || typeof r[a] > "u" && (r[a] = void 0); }), r; } - function St(r, a, p, u = !1) { + function Ct(r, a, p, u = !1) { Object.keys(p).forEach(function(c) { ue(r, c.split(".")) || (fe(r, c.split("."), p[c]), u && (re[c] = !0), (a[c] || []).forEach(function($) { ue(r, $.split(".")) || fe(r, $.split("."), p[c]); @@ -861,11 +861,11 @@ try { me = process.cwd(); } const is = me.substring(0, me.lastIndexOf("node_modules")); -jn, Rn, On, is || process.cwd(), xn, Ie, Cn, Sn, le, process.cwd, process.exit, process.nextTick, typeof process.stdout.columns < "u" && process.stdout.columns, vt, os({ +jn, Rn, On, is || process.cwd(), xn, Ie, Sn, Cn, le, process.cwd, process.exit, process.nextTick, typeof process.stdout.columns < "u" && process.stdout.columns, vt, os({ directory: le(me, "../../../locales"), updateFiles: !1 }); -const k = "\x1B[44m", A = "\x1B[43m", I = "\x1B[41m", Jt = "\x1B[42m", g = "\x1B[0m", x = "\x1B[33m", C = "\x1B[36m", m = "\x1B[0m", cs = { +const k = "\x1B[44m", A = "\x1B[43m", I = "\x1B[41m", Jt = "\x1B[42m", g = "\x1B[0m", x = "\x1B[33m", S = "\x1B[36m", m = "\x1B[0m", cs = { "vue-caution": ["elementSelectorsWithScoped", "implicitParentChildCommunication"], "vue-essential": ["globalStyle", "simpleProp", "singleNameComponent", "vforNoKey", "vifWithVfor"], "vue-recommended": ["elementAttributeOrder", "topLevelElementOrder"], @@ -911,7 +911,7 @@ const k = "\x1B[44m", A = "\x1B[43m", I = "\x1B[41m", Jt = "\x1B[42m", g = "\x1B return Be.length > 0 && Be.forEach((t) => { e.push({ file: t.filePath, - rule: `${C}rrd ~ Long