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 commonly (ab)using script-tags to store html, but linter spits out warnings for every line of html inside the script-tag because it tries to validate it as javascript. this is of course intended behavior, but i'd like to restrict linting to lint only javascript. since most script-tags indeed contain javascript, i'd use blacklist of know types to ignore (i think the same technique is used for other templating frameworks like handlebars?)
i quickly looked at the code and it seems the best way to do this is pass a settings-object to the html-splitter. any thoughts on this from the maintainers before i start implementing it?
The text was updated successfully, but these errors were encountered:
This makes sense, however, I’d prefer simply using the source.js.embedded.html scope instead. See AtomLinter/linter-jshint#132 for how linter-jshint implemented it. PR welcome!
i'm commonly (ab)using script-tags to store html, but linter spits out warnings for every line of html inside the script-tag because it tries to validate it as javascript. this is of course intended behavior, but i'd like to restrict linting to lint only javascript. since most script-tags indeed contain javascript, i'd use blacklist of know types to ignore (i think the same technique is used for other templating frameworks like handlebars?)
i quickly looked at the code and it seems the best way to do this is pass a settings-object to the html-splitter. any thoughts on this from the maintainers before i start implementing it?
The text was updated successfully, but these errors were encountered: