Suppress “Expected '===' and instead saw '=='.” error in jslint

后端 未结 5 1712
轮回少年
轮回少年 2020-12-29 19:25

How can I stop the error message Expected \'===\' and instead saw \'==\'. from appearing in jslint. Doesn\'t seem to be an option.

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 20:05

    Although its late its worth, it would help some one who is in need

    To disable use -

    /* eslint eqeqeq: 0 */
    

    To make it as warning use -

    /* eslint eqeqeq: 1 */
    

提交回复
热议问题