A formatter for tslint which applies fixes to a file, and prints the new contents to stdout. This is useful for certain editor plugins (i.e. neoformat) which prefer to have the changed contents of a file, instead of overwriting the file.
- Install the package:
yarn add --dev tslint-fix-formatter
- Run the linter:
tslint -s node_modules/tslint-fix-formatter -t fix MyFile.ts