Skip to content
This repository has been archived by the owner on Apr 15, 2021. It is now read-only.

vizydrop/stylelint-forbids-variables-with-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Stylelint rule forbids to use of variables with a specific name

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published