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

后端 未结 2 1001
日久生厌
日久生厌 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:26

    laxbreak = true is the option to set.

    You can find the option on the main page of JSHint site as "About unsafe line breaks".

提交回复
热议问题