Lev*_*Lev 5 typescript tslint visual-studio-code
我在 tsconfig 中使用这些规则是为了在 vscode 中突出显示未使用的变量和导入。
"noUnusedLocals": true, /* Report errors on unused locals. */
"noUnusedParameters": true, /* Report errors on unused parameters. */
Run Code Online (Sandbox Code Playgroud)
但是我希望这些规则不会阻止编译。那可能吗 ?
只要语法有效,Typescript 就永远不会阻止编译。您看到的只是“警告”,您的 javascript 文件已发出。
| 归档时间: |
|
| 查看次数: |
788 次 |
| 最近记录: |