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, "root": true,
"parserOptions": { "parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module" "sourceType": "module"
}, },
"extends": [ "extends": ["eslint-config-airbnb-base", "plugin:prettier/recommended"],
"eslint-config-airbnb-base",
"plugin:prettier/recommended"
],
"rules": { "rules": {
"no-empty": [
2,
{
"allowEmptyCatch": true
}
],
"no-underscore-dangle": "off", "no-underscore-dangle": "off",
"no-shadow": "off" "no-shadow": "off"
} }