package page→ /design/design-checks.md
pages/design/design-checks.md
26 lines, 1.1 KB. As a page.
- ---
- type: Page
- title: "Which files the design checks look at"
- description: "Settings for the checks of the design-* and shadcn packages: which folders to search, what to skip."
- icon: "🔎"
- scan: []
- ignore: []
- packageFiles: false
- ---
- # Which files the design checks look at
- The checks of the `design-a11y`, `design-scales` and `shadcn` packages read project files: HTML, TSX, JSX, CSS. This page says which.
- - `scan`: folders or files to search, from the project root. Empty means the whole project.
- - `ignore`: what to skip: a path (`src/legacy`) or a pattern (`**/*.generated.css`, `src/*/old`).
- - `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.
- 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.*`).
- An example for a React project:
- ```yaml
- scan: [src, app]
- ignore: [src/legacy, "**/*.generated.css"]
- ```