I want to use TSLint to autofix current errors in opened file (not whole project). I can do it by writing tslint $FilePathRelativeToProjectRoot$ --fix
in console, but I rather want to create custom shortcut or as trigger on file save.
Does someone has an experience with this kind of set up?
You can set up TSLint as a file watcher:
make sure to clear Auto-save edited files to trigger the watcher checkbox to have the watcher triggered on explicit Save all action (Ctrl+S
)