Skip to content

we-fun/eslint-plugin-confidence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-confidence

status

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

About

Sometimes we want to strengthen confidence of the whole team

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published