I’ve been looking for this answer for several weeks. Here is how to do it.
1. Go to File > Preferences > Settings (or press Ctrl + ,)
2. Add the following code in the USER SETTINGS tab:
I have JSHint installed, if you don’t, you can install