JSLint


Based on Appendix C of "JavaScript: The Good Parts"

  1. Declare all the variables using 'var'. Use /*global to declare what can be global.
  2. Members - JSLint will list all the used members.
  3. Options to JSLint
  4. Semicolons
  5. Line Breaking
  6. Comma - don't use it as operator
  7. Required Blocks
  8. Expression Statements
  9. for x in y - object.hasOwnProperty
  10. switch
  11. var
  12. with
  13. ...