From 543e1a3aea0c775ee34b7f168388a9ebaef1b4c5 Mon Sep 17 00:00:00 2001 From: Manish Jethani Date: Thu, 5 Aug 2021 00:57:32 +0530 Subject: [PATCH] Add ESLint rules for possible errors (#3804) --- platform/nodejs/eslintrc.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/platform/nodejs/eslintrc.json b/platform/nodejs/eslintrc.json index 864be8cc5..4fbc09d27 100644 --- a/platform/nodejs/eslintrc.json +++ b/platform/nodejs/eslintrc.json @@ -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" ] } }