From 9a44eb091e2ffb29a5eb28045206d95050114edf Mon Sep 17 00:00:00 2001 From: Martin K Date: Thu, 18 Jun 2020 22:05:27 +0100 Subject: [PATCH] add default env so we dont error if no env set in config --- plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.js b/plugins.js index 084ba33..001a8e3 100644 --- a/plugins.js +++ b/plugins.js @@ -4,7 +4,7 @@ const { hasAnyDep } = require('./lib/utils') const explorerSync = cosmiconfigSync('eslint') const eslintrc = explorerSync.search() -const { env } = eslintrc.config +const { env = {} } = eslintrc.config const hasBabel = hasAnyDep('babel') || hasAnyDep('@babel/core')