0.0.1 • Published 6 years ago
@visallo/eslint-plugin-css-modules v0.0.1
eslint-plugin-visallo-css-modules
Add css-modules support to eslint
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install @visallo/eslint-plugin-css-modules:
$ npm install @visallo/eslint-plugin-css-modules --save-devNote: 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"
    }
}0.0.1
6 years ago