An ember-template-lint plugin that enforces Tailwind CSS best practices in Ember/Glimmer templates. Current stable version is 5.1.0, released regularly with semver versioning. Ships TypeScript definitions. Key differentiators: provides two custom lint rules (class-wrap and class-order) specifically designed for Tailwind CSS utility classes, auto-detects Tailwind classes via configurable matchers, and integrates seamlessly with ember-template-lint's recommended configuration. Unlike generic HTML linters, this plugin understands Tailwind's class naming conventions and ordering preferences.
npm install ember-template-lint-plugin-tailwindcssNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configure ember-template-lint to use the tailwindcss plugin with recommended rules plus custom class-wrap settings.
Update ember-template-lint to v4 or v5 and update plugin to v5.
Use Node 16 or newer.
Disable class-wrap if using the prettier plugin, or disable prettier's line-length rules for templates.
Ensure matcher functions return true/false and sorter functions return negative/positive numbers correctly.
Run `yarn add -D ember-template-lint-plugin-tailwindcss` or `npm install --save-dev ember-template-lint-plugin-tailwindcss`.
Ensure rule configuration is either a boolean or an object with 'matchers', 'sorters', and 'groups' keys. See README for format.
Add 'ember-template-lint-plugin-tailwindcss' to the plugins array in .template-lintrc.js.