From 362eabab8d183ba8e75a90b5b0ec60ab40214482 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Sat, 21 Aug 2021 19:45:29 +0800 Subject: [PATCH] allow empty block for catch --- .eslintrc.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index 33d49f0d..72a2044f 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -71,5 +71,8 @@ module.exports = { "eol-last": ["error", "always"], //'prefer-template': 'error', "comma-dangle": ["warn", "only-multiline"], + "no-empty": ["error", { + "allowEmptyCatch": true + }], }, }