Add ESLint rules for possible errors (#3804)

This commit is contained in:
Manish Jethani 2021-08-05 00:57:32 +05:30 committed by GitHub
parent 85c68116bd
commit 543e1a3aea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@
"sourceType": "module"
},
"rules": {
"eqeqeq": [ "warn", "always" ],
"indent": [
"warn",
4,
@ -26,6 +27,11 @@
"getter-return": "off",
"no-control-regex": "off",
"no-empty": [ "error", { "allowEmptyCatch": true } ],
"no-useless-escape": "off"
"no-promise-executor-return": [ "error" ],
"no-template-curly-in-string": [ "error" ],
"no-unreachable-loop": [ "error" ],
"no-useless-backreference": [ "error" ],
"no-useless-escape": "off",
"require-atomic-updates": [ "warn" ]
}
}