JSPM

eslint-plugin-css-custom-properties

1.1.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 107
    • Score
      100M100P100Q58080F
    • License MIT

    lint css custom properties in javascript strings

    Package Exports

    • eslint-plugin-css-custom-properties

    Readme

    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