An open API service indexing awesome lists of open source software.

https://github.com/dkunin/stylelint-plugin-do-not-repeat-values-from-variables


https://github.com/dkunin/stylelint-plugin-do-not-repeat-values-from-variables

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# WIP

> This plugin for stylelint should ultimately check for:

- If direct value is used instead of already declared variable
- If value is used several times and propose a variable

![screen](./assets/screenshot.png)

## Install

```
npm i do-not-repeat-values-from-variables --save-dev
```

## Usage

Stylelint config:

```
module.exports = {
extends: [
...
],
ignoreFiles: [
...
],
plugins: [
"do-not-repeat-values-from-variables",
...
],
rules: {
"dkunin/do-not-repeat-values-from-variables": 1,
...
}
};

```

## Contribute

PRs accepted.

## License

MIT © Dmitri Kunin