eslint-disable not honored for --fix
nirvdrum opened this issue · comments
We have files generated by the Relay compiler that we don't want to lint. Fortunately, all the generated files have the following prelude:
/* tslint:disable */
/* eslint-disable */
That's enough for ES Lint to ignore processing these files entirely, including reporting any lint violations about the import sort order. Additionally, import-sort --list-different
does not list these files as being different. But, import-sort --write
will process the files, changing the import order. It's a bit annoying because we end up with team members inadvertently updating generated files.