However I don't fully understand how should you configure JSHint and Inspections -settings in WebStorm.
What I have done:
- It is definetely enabled, because I see gazillion JSHint errors :^O
What I still don't understand:
- I have file debugger.js, where I have class named Debugger. JSHint complains that it is defined but never used. Yes, it is used from game.js, but not from debugger.js. How to configure JSHint that it would understand that something happens in different file?
- I use WADE as js game framework. I initialize wade.js in my index.html and then in game.js I just use wade.dosomething() etc etc. JSHint complains that wade is not defined, but game works ok. Should I somehow explicitly define wade in game.js.
- I understand that if you use JSHint or other code inspection tools, you should have 0 errors because otherwise you will treat following errors as "well, I can ignore this too...". However it seems to be quite impossible to reach 0 errors because .jshintrc itself seems to have problems, it is treated as JSON and have comments, which are not allowed in JSON. Should I remove comments (with license information) or is the best practice somehow exclude some of the files?
Thank you all for your help.