An ember-template-lint plugin for enforcing best practices with ember-css-modules. Version 1.0.0 (stable) switches to ES Modules, requires Node >=12.22.0 and ember-template-lint ^4.2.0. Provides two rules: 'no-class' (disallows all class attributes) and 'static-local-class' (requires local-class values to be static strings). Differentiates from generic linting by being tailor-made for the ember-css-modules addon, ensuring modular CSS patterns are enforced at template level.
npm install ember-template-lint-plugin-css-modulesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure ember-template-lint with the plugin and both available rules.
Use import syntax or dynamic import if using CommonJS project (e.g., 'const plugin = await import(...)').
Upgrade Node.js to a supported major version (12.22+, 14.17+, 16+).
Upgrade ember-template-lint to v4.2.0 or higher.
Use 'css-modules/no-class' instead of 'no-class'.
Convert project to ESM or use dynamic import: const plugin = (await import('ember-template-lint-plugin-css-modules')).default;Run 'npm install --save-dev ember-template-lint-plugin-css-modules' and ensure ember-template-lint ^4.2.0 is installed.
Change rule key to 'css-modules/no-class' in your .template-lintrc.js.