From 0fb23304a6aeb8d9008a78f94a8818775c884704 Mon Sep 17 00:00:00 2001 From: garrytan Date: Mon, 26 Oct 2026 11:28:11 +0000 Subject: [PATCH] design-lint: seventh review cycle tests and docs test/design-lint-seventh-cycle.test.ts (13 tests) pins the stray-tag tail, the shadow-layer split, the JSX generic and ancestor-closing cases, the one-mode token table, the per-file component claims under both scopes with their own suspected rules, the stylesheet beside components, the Reporter file key, outline: none, the sign-in form, the shared tracking ceiling and the missing-stylesheet warning. docs/design-lint.md: the token block and its mode overrides, the stray-tag note, the component-directory claim scope, the email-band exclusions, the missing-sheet warning and zero-chroma-neutrals as a fourth narrow reading. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> --- docs/design-lint.md | 36 +++++++++++++++++++------- test/design-lint-seventh-cycle.test.ts | 2 +- test/design-lint-tailwind.test.ts | 2 +- 3 files changed, 29 insertions(+), 11 deletions(-) diff --git a/docs/design-lint.md b/docs/design-lint.md index 6692d03bb..dbb70b106 100644 --- a/docs/design-lint.md +++ b/docs/design-lint.md @@ -32,14 +32,17 @@ gstack-design-lint [--render] [--url ] [--scope pa A page or stylesheet under a lint root that the lint skipped (over the cap, unreadable, unparseable) is also one `internal-error` finding at ask, so a page the lint could not read is not a pass; a linked stylesheet over the cap - is only warned about, because the page that links it is still read. A + is only warned about, because the page that links it is still read, and a + linked stylesheet that does not exist is warned about and otherwise ignored + (its tokens are simply absent). A relative stylesheet href may not climb out of the project (the nearest directory holding a `package.json` or `.git`), by its path and by its real path, so a symlink inside the project that points outside it is not read either; outside any project it is bounded only by the disk, and only `.css` files are read. - Markup inside an HTML comment is dead for every rule, a commented-out - `