Skip to content

HTML Comments Linting Support #879

Open
@je-movers-market

Description

@je-movers-market

Description

Just tried to add the the no-warning-comments rule to my project, but noticed it was only working for comments directly in script tags.

Anything like the below

<!-- TODO: Fix this later -->
<div>
    <h1>To be fixed</h1>
</div>

was not being picked up, which largely defeats the purpose. Would be good if we had support for linting comments across the entire component (i.e. apply the same rules to HTML comments as TypeScript comments), especially given Svelte 5 now has native TS support within markup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions