如何在 VSCode 中禁用 TypeScript 警告? [英] How to disable TypeScript warnings in VSCode?
问题描述
我暂时不使用 TypeScript.只有带有 babel 的 ES6.
我没有在 node_modules 中安装 TypeScript.
I don't use TypeScript for the time being. Only ES6 with babel.
I don't have installed TypeScript in node_modules.
每次打开工作区时,我都会收到来自 VSCode 的特定警告.
I get a specific warning from VSCode every time I open a workspace.
\node_modules\typescript\lib
未指向有效的 tsserver 安装.回退到捆绑的 TypeScript 版本.
\node_modules\typescript\lib
doesn't point to a valid tsserver install. Falling back to bundled TypeScript version.
我怎样才能摆脱这样的警告?还是我应该换个编辑器才能平静下来?
How can I get rid of such warnings? Or should I change editor in order to feel calm?
推荐答案
可以通过以下两个设置在 VS Code 中关闭 TypeScript 和 JavaScript 验证:
TypeScript and JavaScript validation can be turned off in VS Code with these two settings:
"typescript.validate.enable": false,
"javascript.validate.enable": false,
快乐编码
这篇关于如何在 VSCode 中禁用 TypeScript 警告?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!