![](/img/trans.png)
[英]Compatible JS checker for Vim (Syntastic | YouCompleteMe)?
[英]Syntastic with jslint for vim not executing the checker
我已经用vim设置了Syntastic
https://github.com/scrooloose/syntastic ,我想将它用于node.js javascript linting。
我已经安装了jslint
$ jslint routes/index.js
routes/index.js
#1 Expected exactly one space between 'function' and '('.
module.exports = function(app) { // Line 5, Pos 26
....
我把它放在我的~/.vimrc
let g:syntastic_jslint_checkers=['jslint']
let g:syntastic_check_on_open=1
let g:syntastic_enable_signs=1
但是我在:SyntasticCheck
上没有任何输出
然而
Syntastic: active mode enabled
Syntastic info for filetype: javascript
Available checker(s): jslint
Currently enabled checker(s): jslint
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.