@fibery/stylelint-forbids-variables-with-name
v1.0.1
Published
Stylelint rule forbids the use of variables with a specific name
Downloads
20
Readme
forbids-variables-with-name
Stylelint rule forbids the use of variables with a specific name.
Usage
Add it to your stylelint config plugins
array, then add "@vizydrop/stylelint-forbids-variables-with-name"
to your rules,
specifying the variables which you want to check.
Like so:
// .stylelintrc
{
"plugins": [
"@vizydrop/stylelint-forbids-variables-with-name"
],
"rules": {
// ...
"vizydrop/stylelint-forbids-variables-with-name": {
forbiddenNames: [`@exactForbiddenTextColor`, `/@regEpx.+Color/`],
ignoreNames: ['@exactForbiddenColor', '/^@regEpx.+Color$/'],
}
// ...
}
}