chore: update lint rules

This commit is contained in:
2026-09-26 20:10:35 +05:00
parent 67fdef4363
commit 6a44a3d018
8 changed files with 185 additions and 18 deletions
+11
View File
@@ -7,6 +7,7 @@
import { FILE, parsePreview } from "./token-audit/helpers.mjs";
import { checkParity } from "./token-audit/parity.mjs";
import { checkColorAuthorship } from "./token-audit/colors.mjs";
import { checkUnresolvedRefs } from "./token-audit/refs.mjs";
import { checkUnused } from "./token-audit/unused.mjs";
async function main() {
@@ -34,6 +35,16 @@ async function main() {
console.log("All colors are authored as hct().");
}
const unresolved = checkUnresolvedRefs(root);
if (unresolved.length > 0) {
console.log(
`Unresolved var() references in ${FILE}:\n${unresolved.join("\n")}`,
);
failed = true;
} else {
console.log("All var() references in app.css resolve.");
}
const unused = checkUnused(root);
if (unused.length > 0) {
console.log("\nUnused tokens (defined in app.css, never used):");