Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Merge pull request #53 from Arcanemagus/set-env
Browse files Browse the repository at this point in the history
Specify current directory
  • Loading branch information
Arcanemagus committed Oct 7, 2015
2 parents d5a78a5 + 76df0f8 commit 6effa51
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/main.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ module.exports =
text = textEditor.getText()
parameters = ['--format=json', '-']
exec = path.join(__dirname, '..', 'node_modules', 'csslint', 'cli.js')
helpers.execNode(exec, parameters, {stdin: text}).then (output) ->
cwd = path.dirname(textEditor.getPath())
helpers.execNode(exec, parameters, {stdin: text, cwd: cwd}).then (output) ->
lintResult = JSON.parse(output)
toReturn = []
if lintResult.messages.length < 1
Expand Down

0 comments on commit 6effa51

Please sign in to comment.