From 64dbec1f145c1d4bb11cf83aba8fa253508f2442 Mon Sep 17 00:00:00 2001 From: Kevin Midboe Date: Fri, 19 Aug 2022 13:45:50 +0200 Subject: [PATCH] eslint uses ecmaversion 2020 & allow empty catch rule --- .eslintrc.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 9bbe884..e64f9ff 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,13 +1,17 @@ { "root": true, "parserOptions": { + "ecmaVersion": 2020, "sourceType": "module" }, - "extends": [ - "eslint-config-airbnb-base", - "plugin:prettier/recommended" - ], + "extends": ["eslint-config-airbnb-base", "plugin:prettier/recommended"], "rules": { + "no-empty": [ + 2, + { + "allowEmptyCatch": true + } + ], "no-underscore-dangle": "off", "no-shadow": "off" }