Add opt-in `pnpm lint:design-system` in `site/` using `@shadcn/lint@0.2.0`, with only `no-raw-colors` enabled at warning severity. Existing `pnpm lint` and CI enforcement remain unchanged while the 187 existing findings are evaluated. Upgrade `cn` from 0.2.4 to 0.3.2 so the application and linter use the same supported grammar, and correct UI component discovery. <details> <summary>Rollout decisions and verification</summary> - Start advisory rather than changing UI colors or adding broad exceptions: the scan finds 177 undeclared-token uses, 8 raw palette uses, and 2 literal SVG colors across 102 files. - Keep all other shadcn rules disabled. The advisory configuration preserves existing lint errors and generated/vendor exclusions; it does not suppress failures with `|| true`. - Pin `cn` to 0.3.2, the minimum version supported by the plugin's grammar, rather than taking unrelated later releases. [Upstream changelog](https://github.com/shadcn-ui/cn/blob/main/packages/cn/CHANGELOG.md). - Removed the lint fixture test and Knip comment per review. Rechecked formatting, Biome, full lint/type checks, and the advisory scan after those removals. The advisory scan exits successfully with 187 warnings and no grammar/discovery warnings. - The frontend build and full unit suite passed before the review-only removals. GitHub Actions also passed for that revision; updated checks run on the latest push. - Promote the rule to blocking enforcement separately after reviewing and resolving the backlog. This is design-system linting, not WCAG certification. </details> Generated by Coder Agents on behalf of @jaaydenh.
22 lines
383 B
JSON
22 lines
383 B
JSON
{
|
|
"$schema": "https://ui.shadcn.com/schema.json",
|
|
"style": "new-york",
|
|
"rsc": false,
|
|
"tsx": true,
|
|
"tailwind": {
|
|
"config": "",
|
|
"css": "src/index.css",
|
|
"baseColor": "zinc",
|
|
"cssVariables": true,
|
|
"prefix": ""
|
|
},
|
|
"aliases": {
|
|
"components": "/components",
|
|
"utils": "/utils",
|
|
"ui": "#/components",
|
|
"lib": "/lib",
|
|
"hooks": "/hooks"
|
|
},
|
|
"iconLibrary": "lucide"
|
|
}
|