I try to set proper completions/suggestions for Javascript. There is no problem with ES6+ and Typescript types and defined variables but most of the time I work with vanilla JS in browser context, so I need suggestions for standard JS WebAPI like for document (getElementById, addEventListener, querySelector etc.), Element properties and methods (classList, parentNode etc.), Math, and other variables and types available from window object. Currently I use company-mode, web-mode, lsp-mode, company-lsp.
I tried some options that didn't work. Most of the official tutorials didn't address this issue and often relate to package that are abandoned.
The preferred solution would involve LSP because of it's flexibility to work with many languages, but I'm open for other working suggestions.
Should I install any npm packages, typings for Typescript to configure it properly with tsconfig.json or I don't need that at all? If possible I would like to avoid Typescript when it's not needed.