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

feat: Add disable comment support #281

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: Add disable comment support #281

wants to merge 2 commits into from

Conversation

nzakas
Copy link
Member

@nzakas nzakas commented Sep 13, 2024

This PR adds support for disable comments to the Markdown plugin. It supports all of the variations that ESLint supports:

  • eslint-disable/eslint-enable
  • eslint-disable-line
  • eslint-disable-next-line

While working on this, I discovered a bug in no-html where it was only reporting the first HTML tag in an html node even though there can be multiple. It was also skipping any html node that began with a comment. I also fixed these bugs in this PR, as I needed a good example to test the disable directives.

Note: This PR intentionally does not implement inline configuration comments like /* eslint rule:error */.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant