0

我尝试配置我VIM的基础以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 --' 

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: -->Available checkers: jslint


4

1 回答 1

0

未安装 Linter

npm install -g jslint
于 2019-03-22T11:38:36.230 回答