1.0.3 • Published 1 year ago

eslint-plugin-non-variable-color v1.0.3

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

eslint-plugin-non-variable-color

Custom ESLint rule that warns against the use of color values over css color variables

Installation

Install ESLint and eslint-plugin-non-variable-color:

npm install eslint eslint-plugin-non-variable-color --save-dev

Configuration

In your eslint configuration file, add non-variable-color to the plugins section and configure the rule under rules:

{
  "plugins": ["non-variable-color"],
  "rules": {
    "non-variable-color/discourage-non-variable-color": "warn"
  }
}
1.0.3

1 year ago

1.0.2

1 year ago