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
{{ message }}
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
It appears that EJS (Embedded JavaScript) files could be supported pretty easily on this extension.
EJS templates embedded javascript with <% begin tags and %> end tags, with javascript and other characters that drive various behavior inbetween the ejs start/stop tags.
Currently, htmlhint gives the following error on these tags:
So, one can work around this by turning off the spec-char-escape rule, but then the rule won't catch any non-ejs issues with special character escaping.
The following should be considered for ejs files (*.ejs) by default, or allow explicit configuration by user somehow. These are considered as least support for ejs to most support (but also least amount of work to most amount of work):
Just disable spec-char-escape by default on ejs files (*.ejs)
Ignore the spec-char-escape rule only on <% and %>
Find paired <% and %> tags and ignore both the tags and everything between them
Same as above, but actually lint the ejs tags (<%, <%=, etc.)
Same as above, but also lint the javascript within the ejs tags, or pass off to another linter (e.g. eslint, etc.)