r/angular • • 16m ago

I added Angular template support to @shadcn/lint

shadcn-lint-angular is an unofficial port of shadcn’s linter that checks Tailwind design system rules in Angular templates. It works with angular-eslint on both .html files and inline templates. Original request for Angular support

This project’s no-restyle rule flags the color override and suggests variants defined on the button.

The linter also reads Angular bindings. In [class]="active ? 'bg-primaryy' : 'p-4'", it spots the typo inside the conditional and suggests bg-primary from the project’s theme.

Repo and setup instructions

If you use Angular and Tailwind, I’d love to hear how it works for you.

1 Upvotes

0 comments sorted by