sindresorhus / eslint-plugin-unicorn

More than 100 powerful ESLint rules
MIT License
4.28k stars 367 forks source link

unicorn/filename-case: eslint disable directive does not work #2043

Open golopot opened 1 year ago

golopot commented 1 year ago

Adding // eslint-disable unicorn/filename-case on top of the file should remove the reports for unicorn/filename-case.

unicorn/filename-case

adrianani commented 1 year ago

It should be /* eslint-disable unicorn/filename-case */, using just // won't work it needs to be a comment block for eslint to pick it up for the entire file as far as I know.

golopot commented 1 year ago

The issue still holds if / eslint-disable unicorn/filename-case / is used. Furthermore In newer versions of ESLint // disable directives should work.