This plugin provides next rules for .eslintrc
:
rules:
'@volvo-cars/css/deprecated-class': 'error'
'@volvo-cars/css/redundant-class': 'warn'
'@volvo-cars/css/conflicting-class': 'warn'
'@volvo-cars/css/no-custom-class':
[
'warn',
{
whitelist: ['custom-class-to-whitelist'],
whitelistPattern:'^somePrefix-.*',
},
]
If you want to use @volvo-cars/edls-css
package together with @volvo-cars/eslint-plugin-css
, you need to add the following configuration to your .eslintrc file:
settings:
css:
metaFiles:
- '@volvo-cars/css/meta.json'
- '@volvo-cars/edls-css/meta.json'
This will allow the @volvo-cars/eslint-plugin-css
to lint properly the classes from the @volvo-cars/edls-css
package.