How to configure Syntastic with JSHint?

前端 未结 3 1841
走了就别回头了
走了就别回头了 2021-01-31 14:34

How to use the Syntastic Vim plugin with JSHint to validate JavaScript code?

Environment:

  • Ubuntu 11.04
  • VIM - Vi IMproved 7.3

What I

3条回答
  •  广开言路
    2021-01-31 15:11

    I just had this same problem. Turns out, Syntastic looks for jsl (JSLint) before it looks for jshint. If you have both installed, you'll likely be misled. I moved jsl somewhere not in my PATH, and jshint was detected just fine.

    Source:
    https://github.com/scrooloose/syntastic/pull/47

提交回复
热议问题