开发者

jslint ignore Expected '{' errors

开发者 https://www.devze.com 2022-12-20 00:36 出处:网络
I have a lot of Expected \'{\' and instead saw \'blah\' errors that开发者_运维技巧 spit out when I run my scripts through jslint. Is there an option that ignores this error?There are no options to ign

I have a lot of Expected '{' and instead saw 'blah' errors that开发者_运维技巧 spit out when I run my scripts through jslint. Is there an option that ignores this error?


There are no options to ignore this unless you edit the source of jslint and remove this particular warning. However, it is highly recommended not to ignore this rule.


no. crocky is a curmudgeon js nazi.;-) there is a vs addin on codeplex that i added an ignore feature to though. the addin is still kinda buggy but works well enough. I haven't been able to get contact with the owner to get on the project so havent put a lot more time into it. anyway see here and get the patch from the patches tab


Actually, with the latest version of sublime-jslint, I just told it to ignore these errors by adding to the "ignore_errors" option:

"ignore_errors":
[
    "Expected '{' and instead saw"
],

Now whenever I run sublime-jslint on my files, I get:

jslint: ignored 5 errors.
0

精彩评论

暂无评论...
验证码 换一张
取 消