0.2.0 • Published 8 years ago
eslint-plugin-css-js v0.2.0
eslint-plugin-css-js
linting for css in js
Installation
You'll first need to install ESLint:
$ npm i eslint --save-devNext, install eslint-plugin-css-js:
$ npm install eslint-plugin-css-js --save-devNote: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-css--js globally.
Usage
Add css-js to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"css-js"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"css-js/valid-css": 2
}
}Supported Rules
- Fill in provided rules here