eslint-plugin-header icon indicating copy to clipboard operation
eslint-plugin-header copied to clipboard

Option to allow eslint-disable comment before the header

Open Leomaradan opened this issue 3 years ago • 2 comments

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

Leomaradan avatar Aug 04 '22 15:08 Leomaradan

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

Stuk avatar Aug 08 '22 15:08 Stuk

Must have option here

bonkalol avatar Apr 19 '23 08:04 bonkalol