I spent many hour getting this to work, still without success...
The question is: How to use the TSLint on .js file?
Why? I'm trying to have best possible IDE for writing many JavaScript scripts, used in our internal SW.
My vision:
I can code in VSCode, Sublime, NetBeans.
Thank you for an ideas!
There is some good documentation on this topic in vscode docs: https://code.visualstudio.com/docs/languages/javascript
You can use https://github.com/typings/typings to install any type definitions. https://code.visualstudio.com/docs/languages/javascript#_intellisense-support
You can also add a jsconfig.json to your project similar to tsconfig.json and set module loader to commonJS and target to ES6 if you are using ES2015 syntax in your javascript files. https://code.visualstudio.com/docs/languages/javascript#_javascript-projects-jsconfigjson
In addition you can install ESLint or JSHint extensions. https://code.visualstudio.com/docs/languages/javascript#_javascript-linters-eslint-jshint
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.