Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.1k views
in Technique[技术] by (71.8m points)

哥哥们,在vs code中,如何不让TypeScript检测非ts的文件?

自从做过一个用ts写的项目之后,不是ts的文件也会进行检测,

谷歌了之后,都说要禁用第二张图中的东西,第一个JavaScript确实有效,js文件不报错了,可是html中的还是会警告,请问如何才能让typescript不检测呢

图片.png

图片.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

这个TS没关系,这个是验证的html里面的class名称, 可能是你安装了 htmlhint 之类的插件搞出来的


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...