I have some rules in my tslint.json that require the --type-check functionality. WebStorm doesn't give me a way to add the command-line argument and to the TSLint plugin. It also doesn't give me a way to enable it from the GUI.
As a result TSLint crashes and the TSLint plugin reports an error and I can't see the inspections.
It works when I run TSLint from the command-line with the --type-check argument, but I need the inspections in the IDE.
Does anyone have a workaround for this situation?
As of WebStorm 2017.2, this is now possible using a TypeScript language service plugin. You can install https://github.com/angelozerr/tslint-language-service and then add it to your tsconfig.json (see the instructions in the README), and it will make TSLint errors show up alongside normal TypeScript errors. You can then disable the built-in TSLint integration in WebStorm.
More background is in the relevant WebStorm issue: https://youtrack.jetbrains.com/issue/WEB-22778
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With