Merge pull request #230 from mqudsi/eslint_global

Fall back to globally-installed `eslint` if not found locally
This commit is contained in:
Chiel ten Brinke 2018-02-05 10:11:27 +01:00 committed by GitHub
commit bfa82d7f99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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