eslint-plugin-css-custom-properties

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-css-custom-properties

Weekly Downloads

16

Version

1.1.0

License

MIT

Unpacked Size

14 kB

Total Files

8

Last publish

Collaborators

  • xiphe