Skip to content

mainmatter/ember-template-lint-plugin-css-modules

Repository files navigation

ember-template-lint-plugin-css-modules

ember-template-lint plugin for ember-css-modules

Installation

npm install --save-dev ember-template-lint-plugin-css-modules

Usage

// .template-lintrc.js

module.exports = {
  plugins: ['ember-template-lint-plugin-css-modules'],

  rules: {
    'css-modules/static-local-class': true,
  },
};

Rules

  • no-class – Disallows usage of all class attributes
  • static-local-class – Disallows use of variable values in local-class attributes

Development

  • This plugin uses pnpm to manage its dependencies in development.

License

This projects is developed by and © Mainmatter GmbH and contributors. It is released under the MIT License.