Here's how I usually set up vanilla javascript projects these days to enable typescript compiler jsdoc linting via jsconfig.json with checkJs: true.
First you need a jsconfig.json with at least "checkJs": true.
TypeScript as a dev dependency npm i -D typescript. Not needed for build
since it's vanilla javascript.
