Skip to content

shadcn

5 rules @shadcn/lint@0.1.1

Complete effective rule inventory.

Docs

Rules

5 rules on this page · 5 total

  • shadcn/no-arbitrary-values

    Disallow arbitrary values on appearance utilities; use theme tokens and scale values.

    : warning in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Syntax-only tool configuration
    No autofix; suggestions available
  • shadcn/no-inline-styles

    Disallow inline style attributes, except CSS custom properties.

    : warning in All shadcn contexts
    No autofix
  • shadcn/no-restyle

    Disallow classes on design-system components except what the rule's allow list and the component's contract permit.

    : warning in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Syntax-only tool configuration
    No autofix
  • shadcn/no-unknown-classes

    Disallow classes Tailwind does not know; no CSS is generated for them.

    : warning in All shadcn contexts
    No autofix; suggestions available
  • shadcn/require-static-classes

    Require statically analyzable className values on design-system components.

    : warning in TypeScript source, React source, JavaScript source, React JavaScript source, TypeScript tests, Bun tests, Playwright end-to-end tests, Syntax-only tool configuration
    No autofix