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

Option to allow eslint-disable comment before the header #51

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

Conversation

Leomaradan
Copy link

By default, in VSCode, the option for disabling a eslint rule for the whole file place the comment on top of the file, before the header. That cause the header rule to be invalid, and the eslint comment must be moved manually

This PR add an option allowDisableFirst. When enabled, the eslint-disable comment are ignored from the getLeadingComments function

@Stuk
Copy link
Owner

Stuk commented Aug 8, 2022

Thanks for the PR! Would you mind adding a test?

@bonkalol
Copy link

Must have option here

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.

3 participants