logoalt Hacker News

jdw64yesterday at 5:52 PM1 replyview on HN

HTML linters actually help distinguish things like that? I'm curious if there are any linters out there that can enforce this kind of semantic tag selection.


Replies

wonger_yesterday at 6:59 PM

Closest thing I know of is https://github.com/kristoff-it/superhtml#diagnostics

  SuperHTML validates not only syntax but also element nesting and attribute values. No other language server implements the full HTML spec in its validation code.