eslint uses ecmaversion 2020 & allow empty catch rule

This commit is contained in:
2022-08-19 13:45:50 +02:00
parent a98797088a
commit 64dbec1f14

View File

@@ -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"
}