1.0.1 • Published 3 years ago

@fibery/stylelint-forbids-variables-with-name v1.0.1

Weekly downloads
7
License
MIT
Repository
-
Last release
3 years ago

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$/'],
    }
    // ...
  }
}
1.0.1

3 years ago

1.0.0

3 years ago