mirror of
https://github.com/Ku6epXBOCTuK/easy-png-tools.git
synced 2026-11-13 17:08:20 +00:00
chore: update lint rules
This commit is contained in:
@@ -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):");
|
||||
|
||||
Reference in New Issue
Block a user