You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing in a rails environment and have some inline JavaScript. I can't use sublime-jslint here because my erb partials often don't start with or contain non-html entities like <%= ... %>.
I would like control-J to be smart enough to detect if code was selected, and only scan that.
Alternatively, if nothing is selected and the file starts with a tag, skip everything until it finds a <script></script> block. Then only evaluate the code inside the <script> tags.
The text was updated successfully, but these errors were encountered:
JSLint has not supported scanning in HTML since version 2013-05-01. This is because it is Crockford recommends all JS to be included from external files. I can look into this, but it will require a bit of re-writing.
I'm writing in a rails environment and have some inline JavaScript. I can't use sublime-jslint here because my erb partials often don't start with or contain non-html entities like <%= ... %>.
I would like control-J to be smart enough to detect if code was selected, and only scan that.
Alternatively, if nothing is selected and the file starts with a tag, skip everything until it finds a <script></script> block. Then only evaluate the code inside the <script> tags.
The text was updated successfully, but these errors were encountered: