ember-template-lint-plugin-css-modules

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

Usage no npm install needed!

<script type="module">
  import emberTemplateLintPluginCssModules from 'https://cdn.skypack.dev/ember-template-lint-plugin-css-modules';
</script>

README

ember-template-lint-plugin-css-modules

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

Installation

yarn add --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

License

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