From 7f4cda6c52350b23d152fea3c81d059fe92a69cf Mon Sep 17 00:00:00 2001 From: Jakob Krigovsky Date: Thu, 9 Nov 2017 21:46:33 +0100 Subject: [PATCH] Support both `envs` and `env` in package.json `env` is an alias for `envs`. --- lib/utils/style-settings.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/utils/style-settings.js b/lib/utils/style-settings.js index 45d80d8..0bf2fb6 100644 --- a/lib/utils/style-settings.js +++ b/lib/utils/style-settings.js @@ -88,6 +88,8 @@ function checkStyleSettings (filePath, textEditor) { settings.globals = [].concat(styleSettings.global || []) } + styleSettings.env = styleSettings.env || styleSettings.envs + if (styleSettings.env) { settings.env = [].concat(styleSettings.env || []) }