Closed hmatheisen closed 4 years ago
As TSLint cannot accept input from stdin, I think the feature isn't be implemented in Ale. See https://github.com/palantir/tslint/issues/1590
And TSLint is deprecated now, so the best solution is to switch to ESLint + TypeScript.
As a workaround, I define and use the following command:
command! TSLint !yarn tslint --fix %
I recommend upgrading to ESLint and @typescript-eslint
, which replace TSLint
. I use the combination of the two all the time at work.
Information
VIM version
NVIM v0.4.3 Build type: Release
Operating System
macOS Catalina Version 10.15.2
What went wrong
:AleFix
does not fix the file when using Typescript and tslint, there seem to be something wrong with the quotes in the command array.Reproducing the bug
Run
:AleFix
:ALEInfo