1.1.0 • Published 1 year ago

eslint-plugin-css-custom-properties v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

eslint-plugin-css-custom-properties

lint css custom properties in javascript strings

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-css-custom-properties:

yarn add eslint-plugin-css-custom-properties --save-dev

Usage

Add css-custom-properties to the plugins section of your .eslintrc configuration file:

{
    "plugins": [
        "css-custom-properties"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "css-custom-properties/rule-name": 2
    }
}

Supported Rules