question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support EJS files/tags

See original GitHub issue

Is your feature request related to a problem? Please describe. HTMLHint appears to work well on *.ejs (EJS - Embedded JavaScript) files for the HTML parts, but the EJS templates trigger the spec-char-escape rule on the <% open and %> close tags for the embedded JS templating.

Describe the solution you’d like In *.ejs files, HTMLHint should recognize the EJS start/stop tags and ignore the spec-char-escape tags at the minimum.

It’s possible that everything between the tags should also be ignored, although there aren’t many tags in EJS (plan <%, <%= for just variables, etc.) and most of it is just plain javascript.

Ideally, all the EJS tags and the javascript itself would all be linted.

Describe alternatives you’ve considered I looked for other linters for EJS, at least supported by VS Code, didn’t see anything.

I do use .htmlhintrc to disable the spec-char-escape rule:

{
    "spec-char-escape": false
}

but this is a less-than-ideal solution as it disables checking for that rule in all normal HTML code as well.

Additional context In VS Code, this shows up as follows: image

image

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:7
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
reporter123commented, Nov 19, 2021

This issues needs to be reopened due to being closed by the bot.

0reactions
tolgahanboracommented, Oct 21, 2022

Best stupid error ever. How can i fix that ? Core developers how can don’t know that ? it’s not a rocket science.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The BagIt File Packaging Format (V0.96) - IETF Datatracker
BagIt is a hierarchical file packaging format designed to support ... a set of top-level tag files ("tags") and a single sub-directory named ......
Read more >
spin-orbit interaction - My Community - VASP
Dear VASP users. We have a question about the spin-orbit interaction. In VASP, how the spin-orbit interaction is taken into consideration ?
Read more >
hessi fastrate class definition
PROJECT: HESSI NAME: HESSI_DATA_PATHS PURPOSE: This function returns all the directories needed for a HESSI data path. CATEGORY: HESSI, FILE LOCATION, SYSTEM ...
Read more >
FAQ.idx - untroubled.org
New in ezmlm-idx-0.40 are better support for announcement lists, support for ... a stub for the message is created in D DI IR...
Read more >
Brackets Extension Registry
Brackets Wordpress Hint - plugin for Brackets, which will help you in writing ... link php image audio video project copy files tags...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found