文章内容
2019/11/14 11:16:44,作 者: 黄兵
WebStorm fix TSLint: " should be ' (quotemark)
最近在使用WebStorm写Typescript代码的时候,出现了如下提示:
WebStorm fix TSLint: " should be ' (quotemark)
如果导入的模块默认使用的是双引号,但是TSLint会提示错误。
如何在WebStorm中解决这个问题呢?
Settings > Editor > Code Style > TypeScript > Punctuation > Use single quotes in new code
参考资料:
1、How to fix TSLint: " should be ' (quotemark) while doing organize imports in code editors?
黄兵个人博客原创。
转载请著名出处:黄兵个人博客 - WebStorm fix TSLint: " should be ' (quotemark)
评论列表