Closed aeruhxi closed 7 years ago
I have the same problem, with mocha.
"standard": {
"env": [ "mocha" ]
}
I think you can fix this by changing this
settings.env = {}
Object.keys(styleSettings.env).forEach(function (key) {
settings.env[key] = styleSettings.env[key]
})
to this:
settings.env = [].concat(styleSettings.env || [])
as standard uses an array of env values rather than a hash. I don't actually use atom though so am hesitant to submit a PR for this!
That works great! Opening a PR.
Is this deployed yet? I'm still getting these errors in my editor, when running Standard from the CLI returns no errors.
I don't think so - @ricardofbarros?
Sorry @epeterson320 and @AlecRust it wasn't. It is published now 3.9.1
, thanks
It seems like this was unintentionally reopened.
I am running the latest version 3.9.0 of the plugin. I have specified
env
for jest inpackage.json
If I use
standard
regularly on shell, it works as expected. But the plugin still shows warning in atom like