eslint uses ecmaversion 2020 & allow empty catch rule
This commit is contained in:
@@ -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"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user