No Description

.jshintrc 5.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {
  2. // JSHint Default Configuration File (as on JSHint website)
  3. // See http://jshint.com/docs/ for more details
  4. "maxerr" : 50, // {int} Maximum error before stopping
  5. // Enforcing
  6. "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
  7. "camelcase" : false, // true: Identifiers must be in camelCase
  8. "curly" : false, // true: Require {} for every new block or scope
  9. "eqeqeq" : true, // true: Require triple equals (===) for comparison
  10. "forin" : false, // true: Require filtering for..in loops with obj.hasOwnProperty()
  11. "freeze" : false, // true: prohibits overwriting prototypes of native objects such as Array, Date etc.
  12. "immed" : false, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
  13. "indent" : 4, // {int} Number of spaces to use for indentation
  14. "latedef" : false, // true: Require variables/functions to be defined before being used
  15. "newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
  16. "noarg" : false, // true: Prohibit use of `arguments.caller` and `arguments.callee`
  17. "noempty" : false, // true: Prohibit use of empty blocks
  18. "nonbsp" : false, // true: Prohibit "non-breaking whitespace" characters.
  19. "nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
  20. "plusplus" : false, // true: Prohibit use of `++` & `--`
  21. "quotmark" : false, // Quotation mark consistency:
  22. // false : do nothing (default)
  23. // true : ensure whatever is used is consistent
  24. // "single" : require single quotes
  25. // "double" : require double quotes
  26. "undef" : false, // true: Require all non-global variables to be declared (prevents global leaks)
  27. "unused" : false, // true: Require all defined variables be used
  28. "strict" : false, // true: Requires all functions run in ES5 Strict Mode
  29. "maxparams" : false, // {int} Max number of formal params allowed per function
  30. "maxdepth" : false, // {int} Max depth of nested blocks (within functions)
  31. "maxstatements" : false, // {int} Max number statements per function
  32. "maxcomplexity" : false, // {int} Max cyclomatic complexity per function
  33. "maxlen" : false, // {int} Max number of characters per line
  34. // Relaxing
  35. "asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
  36. "boss" : false, // true: Tolerate assignments where comparisons would be expected
  37. "debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
  38. "eqnull" : true, // true: Tolerate use of `== null`
  39. "es5" : false, // true: Allow ES5 syntax (ex: getters and setters)
  40. "esversion" : 6,
  41. "esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
  42. "moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
  43. // (ex: `for each`, multiple try/catch, function expression�)
  44. "evil" : true, // true: Tolerate use of `eval` and `new Function()`
  45. "expr" : true, // true: Tolerate `ExpressionStatement` as Programs
  46. "funcscope" : true, // true: Tolerate defining variables inside control statements
  47. "globalstrict" : true, // true: Allow global "use strict" (also enables 'strict')
  48. "iterator" : false, // true: Tolerate using the `__iterator__` property
  49. "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
  50. "laxbreak" : true, // true: Tolerate possibly unsafe line breakings
  51. "laxcomma" : false, // true: Tolerate comma-first style coding
  52. "loopfunc" : true, // true: Tolerate functions being defined in loops
  53. "multistr" : true, // true: Tolerate multi-line strings
  54. "noyield" : false, // true: Tolerate generator functions with no yield statement in them.
  55. "notypeof" : false, // true: Tolerate invalid typeof operator values
  56. "proto" : false, // true: Tolerate using the `__proto__` property
  57. "scripturl" : false, // true: Tolerate script-targeted URLs
  58. "shadow" : true, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
  59. "sub" : true, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
  60. "supernew" : true, // true: Tolerate `new function () { ... };` and `new Object;`
  61. "validthis" : true, // true: Tolerate using this in a non-constructor function
  62. "-W100" : true, // true: Disable unsafe characters check
  63. // Environments
  64. "browser" : true, // Web Browser (window, document, etc)
  65. "browserify" : false, // Browserify (node.js code in the browser)
  66. "couch" : false, // CouchDB
  67. "devel" : true, // Development/debugging (alert, confirm, etc)
  68. "dojo" : false, // Dojo Toolkit
  69. "jasmine" : true, // Jasmine
  70. "jquery" : true, // jQuery
  71. "mocha" : false, // Mocha
  72. "mootools" : false, // MooTools
  73. "node" : false, // Node.js
  74. "nonstandard" : true, // Widely adopted globals (escape, unescape, etc)
  75. "prototypejs" : false, // Prototype and Scriptaculous
  76. "qunit" : false, // QUnit
  77. "rhino" : false, // Rhino
  78. "shelljs" : false, // ShellJS
  79. "worker" : false, // Web Workers
  80. "wsh" : false, // Windows Scripting Host
  81. "yui" : false, // Yahoo User Interface
  82. // Custom Globals
  83. "globals" : {} // additional predefined global variables
  84. }