Update Eslint config, add new rule and handle issue (#3068)

This commit is contained in:
Kristjan ESPERANTO
2023-03-20 22:18:58 +01:00
committed by GitHub
parent d276a7ddb9
commit ab0876f07a
3 changed files with 5 additions and 3 deletions

View File

@@ -3,7 +3,7 @@
"plugins": ["prettier", "jsdoc", "jest"],
"env": {
"browser": true,
"es6": true,
"es2022": true,
"jest/globals": true,
"node": true
},
@@ -16,7 +16,7 @@
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020,
"ecmaVersion": 2022,
"ecmaFeatures": {
"globalReturn": true
}
@@ -24,6 +24,7 @@
"rules": {
"eqeqeq": "error",
"no-prototype-builtins": "off",
"no-throw-literal": "error",
"no-unused-vars": "off",
"no-useless-return": "error",
"prefer-template": "error"