自动修复 IntelliJ 和 WebStorm 中的 TSLint 警告

Auto fix TSLint warning in IntelliJ and WebStorm

有什么方法可以自动修复 IntelliJ 和 WebStorm 中的 TSLint 警告?

是:点击 Alt-Enter 突出显示的问题,然后 select TSLint:修复当前问题 仅修复此特定问题或 TSLint:修复当前文件,尽可能将修复应用到整个文件。

有关详细信息,请参阅 https://blog.jetbrains.com/webstorm/2017/01/webstorm-2017-1-eap-171-2455/