0.0.1 • Published 2 years ago
eslint-plugin-colors-variable v0.0.1
eslint-plugin-colors-variable
a color variable eslint for web
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-colors-variable
:
npm install eslint-plugin-colors-variable --save-dev
Usage
Add colors-variable
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"colors-variable"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"colors-variable/rule-name": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.