Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Comments Linting Support #879

Open
je-movers-market opened this issue Oct 20, 2024 · 0 comments
Open

HTML Comments Linting Support #879

je-movers-market opened this issue Oct 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@je-movers-market
Copy link

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.

@je-movers-market je-movers-market added the enhancement New feature or request label Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant