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

fix: honor eslint-disable-next-line in svelte files #379

Merged
merged 1 commit into from Jan 8, 2024

Conversation

squirmy
Copy link
Contributor

@squirmy squirmy commented Jan 2, 2024

Description

eslint ignore directives are not being honored when placed in a .svelte file. This PR adds the processor from eslint-plugin-svelte to the svelte eslint configuration so that these rules can be detected.

Before this PR, this eslint directive would have no effect:

<article>
  <!-- eslint-disable-next-line svelte/no-at-html-tags -->
  <div>{@html content}</div>
</article>

Linked Issues

N/A

Additional context

I've added a fixture to all that includes svelte. Please check that I've added the test correctly.

@antfu antfu merged commit e3328a9 into antfu:main Jan 8, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants