eslint-plugin-css-module-import-name

0.0.1 • Public • Published

eslint-plugin-import-style

Restrict and control name format of css module import

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-css-module-import-name:

npm install eslint-plugin-css-module-import-name --save-dev

Usage

Add css-module-import-name to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["css-module-import-name"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "css-module-import-name/rule-name": 2
  }
}

Rules

TODO: Run eslint-doc-generator to generate the rules list.

Package Sidebar

Install

npm i eslint-plugin-css-module-import-name

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

6.35 kB

Total Files

9

Last publish

Collaborators

  • zelenkoff