.jshintrc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. /*
  3. * ENVIRONMENTS
  4. * =================
  5. */
  6. // Define globals exposed by modern browsers.
  7. "browser": true,
  8. // Define globals exposed by jQuery.
  9. "jquery": true,
  10. // Define globals exposed by Node.js.
  11. "node": true,
  12. /*
  13. * ENFORCING OPTIONS
  14. * =================
  15. */
  16. // Force all variable names to use either camelCase style or UPPER_CASE
  17. // with underscores.
  18. "camelcase": true,
  19. // Prohibit use of == and != in favor of === and !==.
  20. "eqeqeq": true,
  21. // Suppress warnings about == null comparisons.
  22. "eqnull": true,
  23. // Enforce tab width of 2 spaces.
  24. "indent": 2,
  25. // Prohibit use of a variable before it is defined.
  26. "latedef": true,
  27. // Require capitalized names for constructor functions.
  28. "newcap": true,
  29. // Enforce use of single quotation marks for strings.
  30. "quotmark": "single",
  31. // Prohibit trailing whitespace.
  32. "trailing": true,
  33. // Prohibit use of explicitly undeclared variables.
  34. "undef": true,
  35. // Warn when variables are defined but never used.
  36. "unused": true,
  37. // Enforce placing 'use strict' at the top function scope
  38. "strict": false
  39. }