From 0616b1b31ce1b4f1bdc6810b7666ee7fe69b67ce Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Tue, 13 Jul 2021 12:21:09 +0100 Subject: [PATCH] [misc] temporary override a few new/changed eslint rules --- services/notifications/.eslintrc | 15 ++++++++++++++- .../notifications/app/js/HealthCheckController.js | 1 - 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/services/notifications/.eslintrc b/services/notifications/.eslintrc index 1c14f50efe..a97661b15f 100644 --- a/services/notifications/.eslintrc +++ b/services/notifications/.eslintrc @@ -5,7 +5,7 @@ "extends": [ "eslint:recommended", "standard", - "prettier", + "prettier" ], "parserOptions": { "ecmaVersion": 2018 @@ -20,6 +20,19 @@ "mocha": true }, "rules": { + // TODO(das7pad): remove overrides after fixing all the violations manually (https://github.com/overleaf/issues/issues/3882#issuecomment-878999671) + // START of temporary overrides + "array-callback-return": "off", + "no-dupe-else-if": "off", + "no-var": "off", + "no-empty": "off", + "node/handle-callback-err": "off", + "no-loss-of-precision": "off", + "node/no-callback-literal": "off", + "node/no-path-concat": "off", + "prefer-regex-literals": "off", + // END of temporary overrides + // Swap the no-unused-expressions rule with a more chai-friendly one "no-unused-expressions": 0, "chai-friendly/no-unused-expressions": "error", diff --git a/services/notifications/app/js/HealthCheckController.js b/services/notifications/app/js/HealthCheckController.js index ffd58192c2..b2a60048fc 100644 --- a/services/notifications/app/js/HealthCheckController.js +++ b/services/notifications/app/js/HealthCheckController.js @@ -1,7 +1,6 @@ /* eslint-disable camelcase, no-dupe-keys, - standard/no-callback-literal, */ // TODO: This file was created by bulk-decaffeinate. // Fix any style issues and re-enable lint.