import-sort icon indicating copy to clipboard operation
import-sort copied to clipboard

eslint-disable not honored for --fix

Open nirvdrum opened this issue 5 years ago • 0 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.

nirvdrum avatar Jun 06 '20 21:06 nirvdrum