From: Jérôme Benoit Date: Wed, 9 Mar 2022 22:00:21 +0000 (+0100) Subject: Allow undefined in linter configuration X-Git-Tag: v1.1.54~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=ef2d0067b8dfaf81922ffb8f1665f4ddff4c30e9;p=e-mobility-charging-stations-simulator.git Allow undefined in linter configuration Signed-off-by: Jérôme Benoit --- diff --git a/.eslintrc b/.eslintrc index 409a11b2..8b1a3783 100644 --- a/.eslintrc +++ b/.eslintrc @@ -20,7 +20,6 @@ "eqeqeq": ["error", "always"], "no-else-return": "error", "no-eq-null": "error", - "no-undefined": "error", "no-extra-bind": "error", "no-lone-blocks": "error", "no-multi-spaces": "error", diff --git a/prepare.js b/prepare.js index 6673200f..7d7472a7 100644 --- a/prepare.js +++ b/prepare.js @@ -1,6 +1,4 @@ -// eslint-disable-next-line no-undefined const isCi = process.env.CI !== undefined; -// eslint-disable-next-line no-undefined const isCloudFoundry = process.env.VCAP_APPLICATION !== undefined; if (!isCloudFoundry && !isCi) { // eslint-disable-next-line node/no-unpublished-require