Jshint And Skipping Lines With Custom Non-js Templating Code
I am using SublimeLinter3 in SublimeText3 with the SublimeLinter-jshint linter. I have server side JavaScript that is processed by a custom CGI. It imports other server side JS f
Solution 1:
To be strict, whatever custom CGI you are using does not conform JavaScript syntax.
What I suggest is that you make your custom dynamic processing into JavaScript comments, so that it doesn't affect the normal JavaScript parsing. This is much easier than writing your custom JavaScript parser to cater your custom syntax.
E.g.
// %import and other custom commands here
The best approach is that you would not put any non-JavaScript to JS files at all. If you need importing and such there are some more generic JavaScript solutions for them.
Post a Comment for "Jshint And Skipping Lines With Custom Non-js Templating Code"