How do I configure jshint to not give me the error “Bad line breaking before”?

后端 未结 2 972
日久生厌
日久生厌 2021-02-06 23:14

It\'s giving me the error \"Bad line breaking before \',\'\" because I have code like the following

var one = 1
  , two = 2
  , three = 3
  ;

I

2条回答
  •  悲&欢浪女
    2021-02-06 23:52

    As mentioned in the comments of the laxbreak answer, laxcomma option should actually be used for this particular situation (it has been implemented in the meantime). See http://jshint.com/docs/options/ for details.

提交回复
热议问题