VS Code中怎么解决 TSLint: " should be ' (quotemark) 报错问题?

Q1: VS Code配置typescript问题:

VS Code中, user setting中将autoFixOnSave 设置为true。

 VS Code中怎么解决 TSLint:

 ref:https://github.com/praveenpuglia/angular-sanity/issues/4


Q2: Sublime 3搭建TypeScript开发环境出现build parameter问题:

修改TypeScript.sublime-build文件,将其改为如下内容即可

{
     "cmd": ["tsc","$file"],
     "file_regex": "(.*\\.ts?)\\s\\(([0-9]+)\\,([0-9]+)\\)\\:\\s(...*?)$",
     "selector": "source.ts",
 
     "windows": {
         "cmd": ["tsc.cmd", "--target", "ES5", "$file"]
     }
 }

  运行成功后,会生成.js文件。

 ref:https://blog.csdn.net/yihui1314/article/details/77984200

 

转载于:https://www.cnblogs.com/watermarks/p/9520949.html

你可能感兴趣的:(VS Code中怎么解决 TSLint: " should be ' (quotemark) 报错问题?)