page/design/design-checks.md
Which files the design checks look at
Settings for the checks of the design-* and shadcn packages: which folders to search, what to skip.
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:truemeans also look at the files that packages placed as pages (lenses, showcases, package styles). The default isfalse: 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:
scan: [src, app]
ignore: [src/legacy, "**/*.generated.css"]The package Base of the design checks puts this page at
/design/design-checks.md.Source text