chore: Add daily design system audit script

- Add `audit` script to `package.json`.
- Add `scripts/daily-design-system-audit.mjs` implementation.
- Update `scripts/daily-design-system-audit.mjs` to explicitly lint `css/docs.css`.
- Revert changes to `lint:css` in `package.json` to prevent potential CI regressions.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-01-29 16:53:51 +00:00
1 parent 6f4a432fa0
commit 8fd9fb4a18
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@
"format": "prettier --cache --write css/tailwind.source.css css/tokens.css \"docs/**/*.html\" tailwind.config.cjs README.md",
"audit": "node scripts/daily-design-system-audit.mjs",
"lint": "npm run lint:css && npm run lint:hex && npm run lint:inline-styles && npm run lint:tokens && npm run lint:tailwind-brackets && npm run lint:tailwind-colors",
"lint:css": "stylelint css/tailwind.source.css css/tokens.css css/docs.css",
"lint:css": "stylelint css/tailwind.source.css css/tokens.css",
"lint:hex": "node scripts/check-hex.js",
"lint:inline-styles": "node scripts/check-inline-styles.mjs",
"lint:tokens": "node scripts/check-design-tokens.mjs --check=tokens",
+1 -1
View File
@@ -7,7 +7,7 @@ const REPORT_FILE = "REMEDIATION_REPORT.md";
const SHOULD_FIX = process.argv.includes("--fix");
const CHECKS = [
{ name: "CSS", command: "npm", args: ["run", "lint:css"] },
{ name: "CSS", command: "npx", args: ["stylelint", "css/tailwind.source.css", "css/tokens.css", "css/docs.css"] },
{ name: "Hex Colors", command: "npm", args: ["run", "lint:hex"] },
{ name: "Inline Styles", command: "npm", args: ["run", "lint:inline-styles"] },
{ name: "Raw Lengths", command: "npm", args: ["run", "lint:tokens"] }, // check-design-tokens --check=tokens