I know there are plenty of JavaScript lint tools, but I was wondering if there were any for Dojo also since dojo references cause problems for normal JS lint tools.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
JSHint handles dojo fine (and even has a little flag for it). I do miss it not checking my provides and requires though*.
Can’t you add extra names to the global namespace in your favourite tool?
* Edit: Now with the new async modules, jshint will warn if you forgot to import a module (since its just a regular variable now, instead of a nested object property being accessed). However, it will not warn you if there are unused function arguments (ie, modules being imported needlessly). In my case I hacked the JSHint source code to add a warning to that.