0.2.0 • Published 7 years ago

eslint-plugin-css-js v0.2.0

Weekly downloads
34
License
ISC
Repository
github
Last release
7 years ago

eslint-plugin-css-js

linting for css in js

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-css-js:

$ npm install eslint-plugin-css-js --save-dev

Note: 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