tslint-auto-disable-enhanced
This project is a fork of tslint-auto-disable. Thanks to Paul Koerbitz;
- add
// tslint:disable-next-line
before the line which has lint errors
- add support for windows files with
\r\n
endings - remove previous tslint disable line comments (in case they are redundant) before adding new tslint disable comments
- add specific rules to disable, example
// tslint:disable-next-line no-any
- utf8-BOM encoded file will be converted to utf8 directly
- please do commit project changes before running the script
$ npm install tslint-auto-disable-enhanced
$ npx tslint-auto-disable-enhanced
Default options:
- project:
tsconfig.json
under current directory - config:
tslint.json
under current directory
$ npx tslint-auto-disable-enhanced -p tsconfig.json -c tslint.json somedir/somefile.ts somefile.tsx