Basic Example
This example introduces design-lint with a single token and rule.
Steps
- Install dependencies:bash
npm install --save-dev @lapidist/design-lint
- Run the linter:bash
npx design-lint "src/**/*" --config designlint.config.json
Key files
designlint.config.json
– definesprimary
andsecondary
color tokens and enables thedesign-token/colors
rule.
Expected output
When a file uses #ff0000
, the linter reports an error suggesting the primary
token.
Next steps
Read the Getting Started guide for more details.