eslint-plugin-confidence

0.0.0 • Public • Published

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

Package Sidebar

Install

npm i eslint-plugin-confidence

Weekly Downloads

0

Version

0.0.0

License

MIT

Unpacked Size

7.3 kB

Total Files

7

Last publish

Collaborators

  • fritx