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
1 changed files with 7 additions and 1 deletions

View File

@ -9,6 +9,7 @@
"sourceType": "module" "sourceType": "module"
}, },
"rules": { "rules": {
"eqeqeq": [ "warn", "always" ],
"indent": [ "indent": [
"warn", "warn",
4, 4,
@ -26,6 +27,11 @@
"getter-return": "off", "getter-return": "off",
"no-control-regex": "off", "no-control-regex": "off",
"no-empty": [ "error", { "allowEmptyCatch": true } ], "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" ]
} }
} }