.jshintrc 1.8 KB

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