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

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

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

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

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    5.39 kB

    Total Files

    5

    Last publish

    Collaborators

    • vova_fibery
    • kabbi
    • gaswelder
    • unutranyholas
    • erik881
    • struhtanov
    • vzhuk_fibery
    • mavrin
    • mike-yermolayev
    • itsu
    • pshestakov