eslint-plugin-confidence
v0.0.0
Published
Downgrade errors to warnings
Downloads
2
Maintainers
Readme
eslint-plugin-confidence
Use this in caution! Only if you know what you are doing ;)
Forked from the awesome eslint-plugin-only-warn, MIT licensed.
Installation
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-confidence
:
$ npm install eslint-plugin-confidence --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-confidence
globally.
Usage
Add confidence
to the plugins section of your .eslintrc
configuration file:
{
"plugins": ["confidence"]
}
This will make eslint cli report an errorcode which can be detected in git hook or CI pipeline.
Tip: Use husky and lint-staged te prevent committing eslint warnings.
Features
- Suppress all warnings
- Report errors with a
Math.random()
Why confidence?
- Sometimes we want to strengthen confidence of the whole team
- With less warnings and errors reported, team members get more confidence
- With much more confidence, people will focus on what they are coding and think less