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
- Host: GitHub
- URL: https://github.com/dkunin/stylelint-plugin-do-not-repeat-values-from-variables
- Owner: DKunin
- Created: 2017-07-06T07:11:58.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-06T07:49:09.000Z (about 9 years ago)
- Last Synced: 2025-03-14T19:50:13.196Z (over 1 year ago)
- Language: JavaScript
- Size: 64.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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

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