Merge pull request #230 from mqudsi/eslint_global
Fall back to globally-installed `eslint` if not found locally
This commit is contained in:
commit
bfa82d7f99
@ -188,6 +188,9 @@ if !exists('g:formatdef_eslint_local')
|
||||
let l:prog = findfile('node_modules/.bin/eslint', l:path.";")
|
||||
if empty(l:prog)
|
||||
let l:prog = findfile('~/.npm-global/bin/eslint')
|
||||
if empty(l:prog)
|
||||
let l:prog = findfile('/usr/local/bin/eslint')
|
||||
endif
|
||||
endif
|
||||
|
||||
"initial
|
||||
|
Loading…
Reference in New Issue
Block a user