Skip to content

Commit

Permalink
Support both envs and env in package.json
Browse files Browse the repository at this point in the history
`env` is an alias for `envs`.
  • Loading branch information
sonicdoe committed Nov 9, 2017
1 parent b3cdb20 commit 7f4cda6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/utils/style-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 || [])
}
Expand Down

0 comments on commit 7f4cda6

Please sign in to comment.