lint css custom properties in javascript strings
npm install eslint-plugin-css-custom-propertieslint css custom properties in javascript strings
You'll first need to install ESLint:
``sh`
npm i eslint --save-dev
Next, install eslint-plugin-css-custom-properties:
`sh`
yarn add eslint-plugin-css-custom-properties --save-dev
Add css-custom-properties to the plugins section of your .eslintrc configuration file:
`json`
{
"plugins": [
"css-custom-properties"
]
}
Then configure the rules you want to use under the rules section.
`json`
{
"rules": {
"css-custom-properties/rule-name": 2
}
}
* css-custom-properties/no-unknown`