JSLint and the popular alternatives JSHint and ESLint are brilliant tools that make your code more consistent. But sometimes it's hard to understand exactly what they're asking you to change. JSLint goes so far as to be proud of the fact that it will "hurt your feelings".

This page lists all of the options available to you when configuring your tool of choice and attempts to explain exactly what each option does. If you were searching for explanations of error messages you can have a look over here instead.

  • JSLint   JSHint   bitwise

    In JSLint the bitwise option is used to allow the usage of any bitwise operators. In JavaScript the available bitwise operators are << (bitwise left shift), >> (bitwise right shift),…

  • JSLint   JSHint   indent

    In JSLint and JSHint the indent option is used to enforce a specific tab width in your code. Both tools make their own assumptions about when indentation should occur but are largely identical i…

  • JSLint   JSHint   forin

    In JSLint the forin option is used to allow the usage of unfiltered for-in statements. Since the for-in statement will enumerate properties from the prototype chain and not just from the object…