ShtukbaseStandard
package page→ /design/design-checks.md

pages/design/design-checks.md

26 lines, 1.1 KB. As a page.

  1. ---
  2. type: Page
  3. title: "Which files the design checks look at"
  4. description: "Settings for the checks of the design-* and shadcn packages: which folders to search, what to skip."
  5. icon: "🔎"
  6. scan: []
  7. ignore: []
  8. packageFiles: false
  9. ---
  10. # Which files the design checks look at
  11. The checks of the `design-a11y`, `design-scales` and `shadcn` packages read project files: HTML, TSX, JSX, CSS. This page says which.
  12. - `scan`: folders or files to search, from the project root. Empty means the whole project.
  13. - `ignore`: what to skip: a path (`src/legacy`) or a pattern (`**/*.generated.css`, `src/*/old`).
  14. - `packageFiles`: `true` means also look at the files that packages placed as pages (lenses, showcases, package styles). The default is `false`: the packages themselves answer for those.
  15. Always skipped: `node_modules`, `.git`, `.shtukbase`, build and cache folders (`dist`, `build`, `out`, `.next` and similar). The accessibility and scales checks do not look at tests and component stories (`*.test.*`, `*.spec.*`, `*.stories.*`).
  16. An example for a React project:
  17. ```yaml
  18. scan: [src, app]
  19. ignore: [src/legacy, "**/*.generated.css"]
  20. ```