Yes VS Code includes DOM completions in javascript by default. To disable this, create a jsconfig.json
at the root of your project and set "lib"
to "es6"
:
{
"compilerOptions": {
"target": "ES6",
"lib": ["es6"]
},
"exclude": [
"node_modules",
"**/node_modules/*"
]
}
This tells VS Code's intellsenese to only include the standard es6 library typings when providing intellisense.
You can find more information on support "lib"
settings here
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.