Eslint Linter在Vim上不起作用

时间:2019-03-22 09:42:55

标签: vim eslint vim-syntastic

我尝试将基于VIM的{​​{1}}配置为与我的IDE项目一起工作。

我已使用js安装了Plugin 'vim-syntastic/syntastic

vundle的一部分:

.vimrc

set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} set statusline+=%* let g:syntastic_always_populate_loc_list = 1 let g:syntastic_auto_loc_list = 1 let g:syntastic_check_on_open = 1 let g:syntastic_check_on_wq = 0 let g:syntastic_javascript_checkers = ['eslint'] let g:syntastic_javascript_eslint_exe = 'yarn run eslint --' 效果很好

SyntasticInfo:

yarn eslint

Syntastic version: 3.9.0-33 (Vim 800, Darwin) Info for filetype: javascript Global mode: active Filetype javascript is active The current file will be checked automatically Available checkers: - Currently enabled checkers: - 之后的

npm install -g jslint-> Available checkers: -


1 个答案:

答案 0 :(得分:0)

未安装Linter

npm install -g jslint