This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* A script to auto add // eslint-disable-next-line or /* eslint ... to files that don't lint | |
* Example usage: | |
* $ yarn eslint --rule '@typescript-eslint/ban-ts-comment: error' --quiet -f json -o eslint_errors.json src/ tests/ | |
* $ yarn ts-node auto-eslint-ignore.ts eslint_errors.json | |
*/ | |
import { readFile, writeFile } from 'fs/promises'; | |
import { uniq } from 'lodash'; |