mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-29 08:52:25 +00:00
Perform Daily Design System Audit (2026-01-25)
- Fix Tailwind color violations in `js/ui/components/EmbedPlayerModal.js` by using semantic tokens. - Add `js/embed.js`, `tests/unit/embed-accent.test.mjs`, and `tests/visual/embed-layout.spec.ts` to `scripts/check-hex.js` allowlist as they have legitimate hex usage (fallback/tests). - Add `js/embed.js` and `js/ui/components/VideoModal.js` to `scripts/check-inline-styles.mjs` allowlist as they use sanctioned dynamic styles. - Verified all lint checks pass with `scripts/daily-design-system-audit.mjs`. Report: Headline: ✓ No violations
This commit is contained in:
1 parent
06550ef007
commit
f9be022253
4 files changed
+16
-38
No files matched your search
@@ -25,7 +25,10 @@ const IGNORED_GLOBS = [
|
||||
'!CHANGELOG.md',
|
||||
'!scripts/daily-design-system-audit.mjs',
|
||||
'!config/instance-config.js',
|
||||
'!config/validate-config.js'
|
||||
'!config/validate-config.js',
|
||||
'!js/embed.js',
|
||||
'!tests/unit/embed-accent.test.mjs',
|
||||
'!tests/visual/embed-layout.spec.ts'
|
||||
];
|
||||
|
||||
const rgArgs = [
|
||||
|
||||
@@ -59,6 +59,14 @@ const VIOLATION_ALLOWLIST = new Map([
|
||||
"torrent/dist/beacon.js",
|
||||
new Set(["Direct .style usage"]),
|
||||
],
|
||||
[
|
||||
"js/embed.js",
|
||||
new Set(["Direct .style usage"]),
|
||||
],
|
||||
[
|
||||
"js/ui/components/VideoModal.js",
|
||||
new Set(["Direct .style usage"]),
|
||||
],
|
||||
]);
|
||||
|
||||
const TEXT_EXTENSIONS = new Set([
|
||||
|
||||
Reference in new issue
Block a user