summaryrefslogtreecommitdiff
path: root/babel.config.js
diff options
context:
space:
mode:
authorNathan Friend <nathan@gitlab.com>2019-06-03 22:51:02 +0000
committerMike Greiling <mike@pixelcog.com>2019-06-03 22:51:02 +0000
commitbee3c7e847e4c682f3b808ebfddcc0b6746c2d60 (patch)
treeddac4275d2f6da90e0e5651c5d030d861425a7d9 /babel.config.js
parentdeebe0bf1ed222450092397e683dff746c7979b3 (diff)
downloadgitlab-ce-bee3c7e847e4c682f3b808ebfddcc0b6746c2d60.tar.gz
Comply with `no-implicit-coercion` rule (CE)
This commit is the result of running `yarn eslint --fix` after enabling the `no-implicit-coercion` ESLint rule. This rule has been added to our ESLint config here: https://gitlab.com/gitlab-org/gitlab-eslint-config/merge_requests/14
Diffstat (limited to 'babel.config.js')
-rw-r--r--babel.config.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/babel.config.js b/babel.config.js
index df30892731d..05554e8763e 100644
--- a/babel.config.js
+++ b/babel.config.js
@@ -39,7 +39,7 @@ if (BABEL_ENV === 'karma' || BABEL_ENV === 'coverage') {
}
// Jest is running in node environment, so we need additional plugins
-const isJest = !!process.env.JEST_WORKER_ID;
+const isJest = Boolean(process.env.JEST_WORKER_ID);
if (isJest) {
plugins.push('@babel/plugin-transform-modules-commonjs');
/*