.jshintrc 1.3 KB

12345678910111213141516171819202122232425262728
  1. {
  2. /* Additional globals */
  3. "predef": [
  4. "define",
  5. "module",
  6. "require"
  7. ],
  8. /* Enforcing Options */
  9. "immed" : true, // Switches on warnings for immediately invoked functions which are not wrapped in parenthesis
  10. "latedef" : true, // Switches on warnings for using variables or functions prior of their definition
  11. "newcap" : true, // Switches on warnings if uncapitalised constructor function names are being used
  12. "noarg" : true, // Switches on warnings when arguments.caller and arguments.callee are being used
  13. "nonew" : true, // Switches on warnings when no "new" keyword is being used for constructor functions
  14. "regexp" : true, // Switches on warnings for unsafe usage of '.' in regular expressions
  15. "undef" : true, // Switches on warnings when using undeclared variables
  16. "trailing" : true, // Switches on warnings for using trailing whitespace at the end of lines
  17. /* Relaxing Options */
  18. "asi" : true, // Switches off warnings about missing semi-colons
  19. "laxcomma" : true, // Switches off warnings about leading commas in multi-line var declarations
  20. /* Environments */
  21. "browser" : true // Allows the use of undefined globals exposed by modern browsers, i.e. window
  22. }