@vizydrop/stylelint-forbids-variables-with-name

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @vizydrop/stylelint-forbids-variables-with-name

Weekly Downloads

12

Version

1.0.0

License

MIT

Unpacked Size

5.74 kB

Total Files

5

Last publish

Collaborators

  • yurastar7
  • m.shchamialiova
  • kroshner
  • takemyoxygen
  • roman.kozachenko
  • targetprocess-user