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 3 commits into
base: main
Choose a base branch
from
Open

feat: Add disable comment support #281

wants to merge 3 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 */.

@nzakas
Copy link
Member Author

nzakas commented Sep 24, 2024

Ping @eslint/eslint-team

@mdjermanovic
Copy link
Member

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

We don't want to implement this or we'll implement it in another PR?

@nzakas
Copy link
Member Author

nzakas commented Sep 25, 2024

We can implement it in a separate PR. Just wanted to keep this PR focused on the disable directives.

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

Successfully merging this pull request may close these issues.

2 participants