lint css custom properties in javascript strings
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
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
}
}