2 "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
3 "camelcase" : false, // true: Identifiers must be in camelCase
4 "curly" : true, // true: Require {} for every new block or scope
5 "eqeqeq" : true, // true: Require triple equals (===) for comparison
6 "forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
7 "immed" : true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
8 "indent" : 2, // {int} Number of spaces to use for indentation
9 "latedef" : false, // true: Require variables/functions to be defined before being used
10 "newcap" : false, // true: Require capitalization of all constructor functions e.g. `new F()`
11 "noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
12 "noempty" : true, // true: Prohibit use of empty blocks
13 "nonew" : false, // true: Prohibit use of constructors for side-effects (without assignment)
14 "plusplus" : true, // true: Prohibit use of `++` & `--`
15 "quotmark" : "single", // Quotation mark consistency:
16 // false : do nothing (default)
17 // true : ensure whatever is used is consistent
18 // "single" : require single quotes
19 // "double" : require double quotes
20 "undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
21 "unused" : true, // true: Require all defined variables be used
22 "strict" : false, // true: Requires all functions run in ES5 Strict Mode
23 "trailing" : false, // true: Prohibit trailing whitespaces
24 "maxparams" : 3, // {int} Max number of formal params allowed per function
25 "maxdepth" : 2, // {int} Max depth of nested blocks (within functions)
26 "maxstatements" : 12, // {int} Max number statements per function
27 "maxcomplexity" : 4, // {int} Max cyclomatic complexity per function
28 "maxlen" : false, // {int} Max number of characters per line
31 "asi" : true, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
32 "boss" : true, // true: Tolerate assignments where comparisons would be expected
33 "debug" : false, // true: Allow debugger statements e.g. browser breakpoints.
34 "eqnull" : false, // true: Tolerate use of `== null`
35 "esnext" : false, // true: Allow ES.next (ES6) syntax (ex: `const`)
36 "moz" : false, // true: Allow Mozilla specific syntax (extends and overrides esnext features)
37 // (ex: `for each`, multiple try/catch, function expression…)
38 "evil" : false, // true: Tolerate use of `eval` and `new Function()`
39 "expr" : true, // true: Tolerate `ExpressionStatement` as Programs (needed for statements like "expect(foo).to.be.true")
40 "funcscope" : false, // true: Tolerate defining variables inside control statements"
41 "globalstrict" : false, // true: Allow global "use strict" (also enables 'strict')
42 "iterator" : false, // true: Tolerate using the `__iterator__` property
43 "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement of a 1-line block
44 "laxbreak" : false, // true: Tolerate possibly unsafe line breakings
45 "laxcomma" : false, // true: Tolerate comma-first style coding
46 "loopfunc" : false, // true: Tolerate functions being defined in loops
47 "multistr" : false, // true: Tolerate multi-line strings
48 "proto" : true, // true: Tolerate using the `__proto__` property
49 "scripturl" : false, // true: Tolerate script-targeted URLs
50 "smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment
51 "shadow" : false, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
52 "sub" : false, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
53 "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;`
54 "validthis" : true, // true: Tolerate using this in a non-constructor function
57 "browser" : false, // Web Browser (window, document, etc)
58 "couch" : false, // CouchDB
59 "devel" : true, // Development/debugging (alert, confirm, etc)
60 "dojo" : false, // Dojo Toolkit
61 "jquery" : false, // jQuery
62 "mootools" : false, // MooTools
63 "node" : true, // Node.js
64 "nonstandard" : false, // Widely adopted globals (escape, unescape, etc)
65 "prototypejs" : false, // Prototype and Scriptaculous
66 "rhino" : false, // Rhino
67 "worker" : false, // Web Workers
68 "wsh" : false, // Windows Scripting Host
69 "yui" : false, // Yahoo User Interface
72 "nomen" : false, // true: Prohibit dangling `_` in variables
73 "onevar" : false, // true: Allow only one `var` statement per function
74 "passfail" : false, // true: Stop on first error
75 "white" : true, // true: Check against strict whitespace and indentation rules
79 "globals": { // additional predefined global variables