🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

eslint-plugin-only-error

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-only-error

Upgrade warnings to errors

1.0.2
latest
Version published
Weekly downloads
21K
14.2%
Maintainers
1
Weekly downloads
 
Created

eslint-plugin-only-error

Upgrade warnings to errors

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-only-error:

$ npm install eslint-plugin-only-error --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-only-error globally.

Usage

Add only-error to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "only-error"
    ]
}

This plugin is based on eslint-plugin-only-warn by Bob Fanger.

FAQs

Package last updated on 05 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts