在 VSCode 中禁用 TSLint [英] Disable TSLint in VSCode

查看:124
本文介绍了在 VSCode 中禁用 TSLint的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以感觉这应该是一项如此简单的任务,但它开始让我发疯.我似乎无法关闭 TSLint 或 TS 或任何给我这些错误的东西.我只想要带有我自己配置​​规则的 ESLint,没有别的.

So this feels like this should be such an easy task but it's starting to drive me insane. I can't seem to turn off TSLint or TS or whatever it is that gives me these errors. I just want the ESLint with my own configured rules, nothing else.

它是内置于 TS 中的吗?我已经禁用了 TSLint 扩展(甚至卸载了它).我设置了以下规则:

Is it built in TS? I have disabled TSLint extension (even uninstalled it). I have set the following rules:

"typescript.format.enable": false,
"typescript.validate.enable": false,

仍然给我错误.如何关闭此功能?

Still gives me error. How do I turn this off?

推荐答案

看来错误来自 TypeScript 扩展,它也处理 JavaScript IntelliSense.由于一些 UX 无知,VSCode 用 [ts] 而不是 [js] 为错误添加前缀.

It seems that the error is coming from the TypeScript extension, which is also handling the JavaScript IntelliSense. Due to some UX ignorance, VSCode prefixes the error with [ts] instead of [js].

要禁用这些验证,请设置

To disable these validations, set

"javascript.validate.enable": false

有关详细信息,请参阅此问题.

See this issue for more details.

这篇关于在 VSCode 中禁用 TSLint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆