summaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-04-13 21:02:56 +0100
committerw0rp <devw0rp@gmail.com>2018-04-13 21:02:56 +0100
commit60917c900560e92b299ef3443f083334c0e8adcf (patch)
treeb6529ea01d3f477624548a4b936426debf876f23 /autoload
parentf5f3424fcf23b942257892537491d61decbe7aa9 (diff)
downloadale-60917c900560e92b299ef3443f083334c0e8adcf.zip
Revert "#1277 Try to get eslint_d to run the right version of eslint"
This reverts commit 56c7957a75d08b011c44cda7ec55864dd7cb5d31.
Diffstat (limited to 'autoload')
-rw-r--r--autoload/ale/handlers/eslint.vim13
1 files changed, 1 insertions, 12 deletions
diff --git a/autoload/ale/handlers/eslint.vim b/autoload/ale/handlers/eslint.vim
index 47a2a866..bc10ec21 100644
--- a/autoload/ale/handlers/eslint.vim
+++ b/autoload/ale/handlers/eslint.vim
@@ -41,19 +41,8 @@ function! ale#handlers#eslint#GetCommand(buffer) abort
let l:executable = ale#handlers#eslint#GetExecutable(a:buffer)
let l:options = ale#Var(a:buffer, 'javascript_eslint_options')
- let l:cd_string = ''
- " Change directory to where `node_modules` is, if running eslint_d.
- " eslint_d looks up which eslint version to use based on the CWD.
- if l:executable =~# 'eslint_d'
- let l:node_modules_dir = ale#path#FindNearestDirectory(a:buffer, 'node_modules')
-
- if !empty(l:node_modules_dir)
- let l:cd_string = ale#path#CdString(l:node_modules_dir)
- endif
- endif
-
- return l:cd_string . ale#node#Executable(a:buffer, l:executable)
+ return ale#node#Executable(a:buffer, l:executable)
\ . (!empty(l:options) ? ' ' . l:options : '')
\ . ' -f unix --stdin --stdin-filename %s'
endfunction