简体   繁体   中英

VSCode: how to disable warnings about deprecated Node.js features

I'm using VSCode for a Javascript project that runs in a browser JS engine; it will never and can't run in Node.js. But Intellisense quite dramatically warns about features in my code that are deprecated in Node.js. Is there a way to tell it, that this is not a node but a browser project to get only relevant warnings?

Strikethrough in code and warning in Intellisense popup

if you use eslint as linter. You can do it in the .eslintignore file in your root directory.

take a look here: disable the warnings in VS code

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM