diff options
author | w0rp <devw0rp@gmail.com> | 2017-08-31 13:12:24 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-08-31 13:12:24 +0100 |
commit | 7c2a5052a850a6e7df10c2b4f84fd5b343175d8d (patch) | |
tree | 97225111667373635892128784b34cd854379cdd /ale_linters/javascript | |
parent | 1d86a724f2f54212d1230fcb2195220f5b3727f9 (diff) | |
download | ale-7c2a5052a850a6e7df10c2b4f84fd5b343175d8d.zip |
Fix #895 - Run Node.js scripts with node.exe instead of node on Windows
Diffstat (limited to 'ale_linters/javascript')
-rw-r--r-- | ale_linters/javascript/standard.vim | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ale_linters/javascript/standard.vim b/ale_linters/javascript/standard.vim index fc534ebb..aa6a3a72 100644 --- a/ale_linters/javascript/standard.vim +++ b/ale_linters/javascript/standard.vim @@ -14,17 +14,9 @@ endfunction function! ale_linters#javascript#standard#GetCommand(buffer) abort let l:executable = ale_linters#javascript#standard#GetExecutable(a:buffer) - - if ale#Has('win32') && l:executable =~? '\.js$' - " .js files have to be executed with Node on Windows. - let l:head = 'node ' . ale#Escape(l:executable) - else - let l:head = ale#Escape(l:executable) - endif - let l:options = ale#Var(a:buffer, 'javascript_standard_options') - return l:head + return ale#node#Executable(a:buffer, l:executable) \ . (!empty(l:options) ? ' ' . l:options : '') \ . ' --stdin %s' endfunction |