-
-
Notifications
You must be signed in to change notification settings - Fork 48
feat: support comma-separated ignore comments #1235
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
Conversation
This is two things: - performance improvements to the algorithm we use for extracting ignore comments - support for comma-separated ignore comments We can now support (as per svelte docs): ```html <!-- svelte-ignore code1, code2 --> ``` It also drops multi-line matching in the pattern to avoid matching this kind of funk: ```html <!-- some random multi-line content svelte-ignore code1 more content --> ```
🦋 Changeset detectedLatest commit: b6bd978 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Try the Instant Preview in Online PlaygroundInstall the Instant Preview to Your Local
Published Instant Preview Packages:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR!
I have a change request to resolve some old Svelte test failures.
...ests/fixtures/rules/no-unused-svelte-ignore/valid/svelte-ignore-comma-separated-input.svelte
Show resolved
Hide resolved
963d28c
to
7f0023c
Compare
7f0023c
to
b6bd978
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
This is two things:
We can now support (as per svelte docs):
<!-- svelte-ignore code1, code2 -->
It also drops multi-line matching in the pattern to avoid matching this kind of funk: