Jslint ignore Expected Errors '{'

I have many Expected '{' and instead saw 'blah' errors that spit out when running my scripts via jslint. Is there an option that ignores this error?

+4
source share
3 answers

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

+3
source

not. crocky is curmudgeon js nazi. ;-) there is vs addin on codeplex, but I added an ignore function. addin is still inadequate, but works pretty well. I could not contact the owner to get into the project, so more time was added to it. anyway see here and get the patch from the patch tab

+2
source

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

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

Now when I run sublime-jslint in my files, I get:

 jslint: ignored 5 errors. 
+1
source

Source: https://habr.com/ru/post/1300938/


All Articles