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

eslint-plugin-no-catch-destructuring

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-no-catch-destructuring

Avoid Safari10 ES6 bug by not destructuring in catch blocks

1.0.2
latest
Source
npm
Version published
Weekly downloads
3.5K
-4.87%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-no-catch-destructuring

Avoid Safari <=13 ES6 bug by not destructuring in catch blocks

If you're curious, here's the specific bug: https://bugs.webkit.org/show_bug.cgi?id=189914

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-no-catch-destructuring:

npm install eslint-plugin-no-catch-destructuring --save-dev

Usage

Add no-catch-destructuring to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["no-catch-destructuring"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "no-catch-destructuring/no-catch-destructuring": 2
  }
}

Keywords

eslint

FAQs

Package last updated on 04 Nov 2021

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