if findfile('.eslintrc', '.;') != ''
    let b:syntastic_checkers = ['eslint']
endif

if findfile('.eslintrc', '.;') != ''
    let b:syntastic_checkers = ['eslint']
    let b:syntastic_javascript_eslint_exec =
        \ split(system('PATH=$(npm bin):$PATH which eslint_d eslint'), '\n')[0]
endif

Use eslint_d or local eslint if available
[vim] Use eslint_d or local eslint if available

nfrolov/dotfiles