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

> Stylelint rule forbids the use of variables with a specific name

Latest version **1.0.1** (published 2020-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fibery/stylelint-forbids-variables-with-name
pnpm add @fibery/stylelint-forbids-variables-with-name
yarn add @fibery/stylelint-forbids-variables-with-name
bun add @fibery/stylelint-forbids-variables-with-name
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-12-01 |
| First published | 2020-12-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Konstantin Krivlenia |
| Maintainers | erik881, fiberybot |
| Keywords | Stylelint, css |

## Links

- npm: https://www.npmjs.com/package/@fibery/stylelint-forbids-variables-with-name
- npm.io page: https://npm.io/package/@fibery/stylelint-forbids-variables-with-name

## Alternatives

- [style-dictionary](https://npm.io/package/style-dictionary.md) — 2.0M weekly downloads
- [postcss-merge-idents](https://npm.io/package/postcss-merge-idents.md) — 1.7M weekly downloads
- [@fontsource/noto-sans](https://npm.io/package/@fontsource/noto-sans.md) — 93.0K weekly downloads
- [uglifycss](https://npm.io/package/uglifycss.md) — 71.6K weekly downloads
- [mat4-interpolate](https://npm.io/package/mat4-interpolate.md) — 23.3K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-12-01
- 1.0.0 — 2020-12-01

## 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:

```js
// .stylelintrc
{
  "plugins": [
    "@vizydrop/stylelint-forbids-variables-with-name"
  ],
  "rules": {
    // ...
    "vizydrop/stylelint-forbids-variables-with-name": {
        forbiddenNames: [`@exactForbiddenTextColor`, `/@regEpx.+Color/`],
        ignoreNames: ['@exactForbiddenColor', '/^@regEpx.+Color$/'],
    }
    // ...
  }
}
```

---
_Source: https://npm.io/package/@fibery/stylelint-forbids-variables-with-name · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
