@visallo/eslint-plugin-css-modules
v0.0.1
Published
Add css-modules support to eslint
Downloads
4
Readme
eslint-plugin-visallo-css-modules
Add css-modules support to eslint
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install @visallo/eslint-plugin-css-modules
:
$ npm install @visallo/eslint-plugin-css-modules --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install @visallo/eslint-plugin-css-modules
globally.
Usage
Add @visallo/css-modules
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"@visallo/css-modules"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"@visallo/css-modules/css-modules-uses-vars": "error"
}
}