@washingtonpost/eslint-plugin-wpds
v2.8.1
Published
WPDS lint rules
Downloads
3,424
Maintainers
Keywords
Readme
ESLint Plugin
WPDS Linting rules
- theme-colors - looks for colors properties in style objects that use hex values and suggests a design token replacement.
Installation
- Install from npm
npm i @washingtonpost/eslint-plugin-wpds/ --dev
- Add plugin and set level of rules in
eslint.rc
module.exports = { ... plugins: [ "@washingtonpost/wpds", ], ... rules: [ "@washingtonpost/wpds/theme-colors": "warn", ] }