diff --git a/.husky/commit-msg b/.husky/commit-msg index d19d816..960d544 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -13,9 +13,9 @@ case "$first_line" in "Merge "*|"Revert "*) exit 0 ;; esac -if ! printf '%s' "$first_line" | grep -qE '^(feat|fix|docs|refactor|chore|test|style|ci|perf|build)(\([a-z0-9 -]+\))?: .{1,}$'; then +if ! printf '%s' "$first_line" | grep -qE '^(feat|fix|docs|refactor|chore|test|style|ci|perf|build|revert)(\([a-z0-9 -]+\))?: .{1,}$'; then echo "commit-msg: subject must be ': ' (lowercase type)." >&2 - echo " types: feat fix docs refactor chore test style ci perf build" >&2 + echo " types: feat fix docs refactor chore test style ci perf build revert" >&2 echo " got: $first_line" >&2 exit 1 fi diff --git a/scripts/audit-ui.mjs b/scripts/audit-ui.mjs index 7ad9681..9d61d49 100644 --- a/scripts/audit-ui.mjs +++ b/scripts/audit-ui.mjs @@ -23,11 +23,6 @@ const shared = read('chapters.css'); const skills = read('skills/styles.css'); const guide = read('full-guide/index.html'); const guideAudit = read('full-guide/audit.css'); -const css = ['styles.css', 'chapters.css', 'skills/styles.css', 'full-guide/audit.css']; -for (const file of css) { - if (/@import|src:\s*url\(['\"]?https?:|url\(['\"]?https?:/i.test(read(file))) - throw new Error(`${file} has an external CSS dependency`); -} for (const token of ['@media(max-width:800px)', '@media(max-width:520px)']) if (!shared.includes(token)) throw new Error(`shared chapter CSS lacks ${token}`); for (const token of [