Skip to content

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