Why is JS Lint is reporting an error in the JQuery library? [duplicate]-Collection of common programming errors
Linter like jsHint and jsLint are help tools. They help teams coding in standard way, but they aren’t really checking your script for actual error. For this kind of feedback, you’d be looking more at esprima.js kind of tools.
This mean that you don’t have to buy in any defaults linter come with. In fact, these tools are easily configurable to work best with you and your team workflow (jsHint option page).
For jQuery, you can find their jsHint settings right here on their github project: https://github.com/jquery/jquery/blob/master/.jshintrc
If you set your option as those, you shouldn’t have any error showing up. That’s why most editor let you setup a linter configuration for each project, so you can easily follow guidelines of each ones.
So remember, linter are only a tools to help you out, not any form of Truth with a big T.
Hope this help!
Originally posted 2013-11-09 23:16:34.