11{
2- // Whether the scan should stop on first error.
32 "passfail" : false ,
4- // Maximum errors before stopping.
53 "maxerr" : 100 ,
64
75
8- // Predefined globals
9-
10- // Whether the standard browser globals should be predefined.
116 "browser" : true ,
12- // Whether the Node.js environment globals should be predefined.
137 "node" : false ,
14- // Whether the Rhino environment globals should be predefined.
158 "rhino" : false ,
16- // Whether CouchDB globals should be predefined.
179 "couch" : false ,
18- // Whether the Windows Scripting Host environment globals should be predefined.
1910 "wsh" : false ,
2011
21- // Whether jQuery globals should be predefined.
2212 "jquery" : false ,
23- // Whether Prototype and Scriptaculous globals should be predefined.
2413 "prototypejs" : false ,
25- // Whether MooTools globals should be predefined.
2614 "mootools" : false ,
27- // Whether Dojo Toolkit globals should be predefined.
2815 "dojo" : false ,
2916
30- // Custom predefined globals.
3117 "predef" : [],
3218
33- // Development
34-
35- // Whether debugger statements should be allowed.
3619 "debug" : false ,
37- // Whether logging globals should be predefined (console, alert, etc.).
3820 "devel" : false ,
3921
40-
41- // ECMAScript 5
42-
43- // Whether ES5 syntax should be allowed.
4422 "es5" : true ,
45- // Whether the "use strict"; pragma should be required.
4623 "strict" : true ,
47- // Whether global "use strict"; should be allowed (also enables strict).
4824 "globalstrict" : false ,
4925
50-
51- // The Good Parts
52-
53- // Whether automatic semicolon insertion should be allowed.
5426 "asi" : false ,
55- // Whether line breaks should not be checked, e.g. `return [\n] x`.
5627 "laxbreak" : false ,
57- // Whether bitwise operators (&, |, ^, etc.) should be forbidden.
5828 "bitwise" : false ,
59- // Whether assignments inside `if`, `for` and `while` should be allowed. Usually
60- // conditions and loops are for comparison, not assignments.
6129 "boss" : true ,
62- // Whether curly braces around all blocks should be required.
6330 "curly" : true ,
64- // Whether `===` and `!==` should be required (instead of `==` and `!=`).
6531 "eqeqeq" : true ,
66- // Whether `== null` comparisons should be allowed, even if `eqeqeq` is `true`.
6732 "eqnull" : false ,
68- // Whether `eval` should be allowed.
6933 "evil" : false ,
70- // Whether ExpressionStatement should be allowed as Programs.
7134 "expr" : true ,
72- // Whether `for in` loops must filter with `hasOwnPrototype`.
7335 "forin" : false ,
74- // Whether immediate invocations must be wrapped in parens, e.g.
75- // `( function(){}() );`.
7636 "immed" : true ,
77- // Whether use before define should be forbidden.
7837 "latedef" : false ,
79- // Whether functions should be allowed to be defined within loops.
8038 "loopfunc" : false ,
81- // Whether arguments.caller and arguments.callee should be forbidden.
8239 "noarg" : false ,
83- // Whether `.` should be forbidden in regexp literals.
8440 "regexp" : false ,
85- // Whether unescaped first/last dash (-) inside brackets in regexps should be allowed.
8641 "regexdash" : false ,
87- // Whether script-targeted URLs should be allowed.
8842 "scripturl" : false ,
89- // Whether variable shadowing should be allowed.
9043 "shadow" : false ,
91- // Whether `new function () { ... };` and `new Object;` should be allowed.
9244 "supernew" : false ,
93- // Whether variables must be declared before used.
9445 "undef" : true ,
95- // Whether `this` inside a non-constructor function should be allowed.
9646 "validthis" : false ,
97- // Whether smarttabs should be allowed
98- // (http://www.emacswiki.org/emacs/SmartTabs).
9947 "smarttabs" : true ,
100- // Whether the `__proto__` property should be allowed.
10148 "proto" : false ,
102- // Whether one-case switch statements should be allowed.
10349 "onecase" : false ,
104- // Whether non-standard (but widely adopted) globals should be predefined.
10550 "nonstandard" : false ,
106- // Allow multiline strings.
10751 "multistr" : false ,
108- // Whether line breaks should not be checked around commas.
10952 "laxcomma" : false ,
110- // Whether semicolons may be ommitted for the trailing statements inside of a
111- // one-line blocks.
11253 "lastsemic" : false ,
113- // Whether the `__iterator__` property should be allowed.
11454 "iterator" : false ,
115- // Whether only function scope should be used for scope tests.
11655 "funcscope" : false ,
117- // Whether es.next specific syntax should be allowed.
11856 "esnext" : false ,
11957
120-
121- // Style preferences
122-
123- // Whether constructor names must be capitalized.
12458 "newcap" : false ,
125- // Whether empty blocks should be forbidden.
12659 "noempty" : false ,
127- // Whether using `new` for side-effects should be forbidden.
12860 "nonew" : false ,
129- // Whether names should be checked for leading or trailing underscores
130- // (object._attribute would be forbidden).
13161 "nomen" : false ,
132- // Whether only one var statement per function should be allowed.
13362 "onevar" : false ,
134- // Whether increment and decrement (`++` and `--`) should be forbidden.
13563 "plusplus" : false ,
136- // Whether all forms of subscript notation are allowed.
13764 "sub" : false ,
138- // Whether trailing whitespace rules apply.
13965 "trailing" : true ,
140- // Whether strict whitespace rules apply.
141- "white" : false ,
142- // Specify indentation.
66+ "white" : true ,
14367 "indent" : 4
14468}
0 commit comments