| 8 |
lars |
1 |
{
|
|
|
2 |
// Whether the scan should stop on first error.
|
|
|
3 |
"passfail": false,
|
|
|
4 |
// Maximum errors before stopping.
|
|
|
5 |
"maxerr": 100,
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
// Predefined globals
|
|
|
9 |
|
|
|
10 |
// Whether the standard browser globals should be predefined.
|
|
|
11 |
"browser": false,
|
|
|
12 |
// Whether the Node.js environment globals should be predefined.
|
|
|
13 |
"node": true,
|
|
|
14 |
// Whether the Rhino environment globals should be predefined.
|
|
|
15 |
"rhino": false,
|
|
|
16 |
// Whether CouchDB globals should be predefined.
|
|
|
17 |
"couch": false,
|
|
|
18 |
// Whether the Windows Scripting Host environment globals should be predefined.
|
|
|
19 |
"wsh": false,
|
|
|
20 |
|
|
|
21 |
// Whether jQuery globals should be predefined.
|
|
|
22 |
"jquery": false,
|
|
|
23 |
// Whether Prototype and Scriptaculous globals should be predefined.
|
|
|
24 |
"prototypejs": false,
|
|
|
25 |
// Whether MooTools globals should be predefined.
|
|
|
26 |
"mootools": false,
|
|
|
27 |
// Whether Dojo Toolkit globals should be predefined.
|
|
|
28 |
"dojo": false,
|
|
|
29 |
|
|
|
30 |
// Custom predefined globals.
|
|
|
31 |
"predef": [],
|
|
|
32 |
|
|
|
33 |
// Development
|
|
|
34 |
|
|
|
35 |
// Whether debugger statements should be allowed.
|
|
|
36 |
"debug": false,
|
|
|
37 |
// Whether logging globals should be predefined (console, alert, etc.).
|
|
|
38 |
"devel": false,
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
// ECMAScript 5
|
|
|
42 |
|
|
|
43 |
// Whether the "use strict"; pragma should be required.
|
|
|
44 |
"strict": true,
|
|
|
45 |
// Whether global "use strict"; should be allowed (also enables strict).
|
|
|
46 |
"globalstrict": true,
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
// The Good Parts
|
|
|
50 |
|
|
|
51 |
// Whether automatic semicolon insertion should be allowed.
|
|
|
52 |
"asi": false,
|
|
|
53 |
// Whether line breaks should not be checked, e.g. `return [\n] x`.
|
|
|
54 |
"laxbreak": false,
|
|
|
55 |
// Whether bitwise operators (&, |, ^, etc.) should be forbidden.
|
|
|
56 |
"bitwise": false,
|
|
|
57 |
// Whether assignments inside `if`, `for` and `while` should be allowed. Usually
|
|
|
58 |
// conditions and loops are for comparison, not assignments.
|
|
|
59 |
"boss": true,
|
|
|
60 |
// Whether curly braces around all blocks should be required.
|
|
|
61 |
"curly": true,
|
|
|
62 |
// Whether `===` and `!==` should be required (instead of `==` and `!=`).
|
|
|
63 |
"eqeqeq": true,
|
|
|
64 |
// Whether `== null` comparisons should be allowed, even if `eqeqeq` is `true`.
|
|
|
65 |
"eqnull": false,
|
|
|
66 |
// Whether `eval` should be allowed.
|
|
|
67 |
"evil": false,
|
|
|
68 |
// Whether ExpressionStatement should be allowed as Programs.
|
|
|
69 |
"expr": true,
|
|
|
70 |
// Whether `for in` loops must filter with `hasOwnPrototype`.
|
|
|
71 |
"forin": false,
|
|
|
72 |
// Whether immediate invocations must be wrapped in parens, e.g.
|
|
|
73 |
// `( function(){}() );`.
|
|
|
74 |
"immed": true,
|
|
|
75 |
// Whether use before define should be forbidden.
|
|
|
76 |
"latedef": false,
|
|
|
77 |
// Whether functions should be allowed to be defined within loops.
|
|
|
78 |
"loopfunc": false,
|
|
|
79 |
// Whether arguments.caller and arguments.callee should be forbidden.
|
|
|
80 |
"noarg": false,
|
|
|
81 |
// Whether `.` should be forbidden in regexp literals.
|
|
|
82 |
"regexp": false,
|
|
|
83 |
// Whether unescaped first/last dash (-) inside brackets in regexps should be allowed.
|
|
|
84 |
"regexdash": false,
|
|
|
85 |
// Whether script-targeted URLs should be allowed.
|
|
|
86 |
"scripturl": false,
|
|
|
87 |
// Whether variable shadowing should be allowed.
|
|
|
88 |
"shadow": false,
|
|
|
89 |
// Whether `new function () { ... };` and `new Object;` should be allowed.
|
|
|
90 |
"supernew": false,
|
|
|
91 |
// Whether variables must be declared before used.
|
|
|
92 |
"undef": true,
|
|
|
93 |
// Whether `this` inside a non-constructor function should be allowed.
|
|
|
94 |
"validthis": false,
|
|
|
95 |
// Whether smarttabs should be allowed
|
|
|
96 |
// (http://www.emacswiki.org/emacs/SmartTabs).
|
|
|
97 |
"smarttabs": true,
|
|
|
98 |
// Whether the `__proto__` property should be allowed.
|
|
|
99 |
"proto": false,
|
|
|
100 |
// Whether one-case switch statements should be allowed.
|
|
|
101 |
"onecase": false,
|
|
|
102 |
// Whether non-standard (but widely adopted) globals should be predefined.
|
|
|
103 |
"nonstandard": false,
|
|
|
104 |
// Allow multiline strings.
|
|
|
105 |
"multistr": false,
|
|
|
106 |
// Whether line breaks should not be checked around commas.
|
|
|
107 |
"laxcomma": false,
|
|
|
108 |
// Whether semicolons may be ommitted for the trailing statements inside of a
|
|
|
109 |
// one-line blocks.
|
|
|
110 |
"lastsemic": false,
|
|
|
111 |
// Whether the `__iterator__` property should be allowed.
|
|
|
112 |
"iterator": false,
|
|
|
113 |
// Whether only function scope should be used for scope tests.
|
|
|
114 |
"funcscope": false,
|
|
|
115 |
// Whether es.next specific syntax should be allowed.
|
|
|
116 |
"esnext": false,
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
// Style preferences
|
|
|
120 |
|
|
|
121 |
// Whether constructor names must be capitalized.
|
|
|
122 |
"newcap": false,
|
|
|
123 |
// Whether empty blocks should be forbidden.
|
|
|
124 |
"noempty": false,
|
|
|
125 |
// Whether using `new` for side-effects should be forbidden.
|
|
|
126 |
"nonew": false,
|
|
|
127 |
// Whether names should be checked for leading or trailing underscores
|
|
|
128 |
// (object._attribute would be forbidden).
|
|
|
129 |
"nomen": false,
|
|
|
130 |
// Whether only one var statement per function should be allowed.
|
|
|
131 |
"onevar": false,
|
|
|
132 |
// Whether increment and decrement (`++` and `--`) should be forbidden.
|
|
|
133 |
"plusplus": false,
|
|
|
134 |
// Whether all forms of subscript notation are allowed.
|
|
|
135 |
"sub": false,
|
|
|
136 |
// Whether trailing whitespace rules apply.
|
|
|
137 |
"trailing": false,
|
|
|
138 |
// Specify indentation.
|
|
|
139 |
"indent": 4,
|
|
|
140 |
// Whether strict whitespace rules apply.
|
|
|
141 |
"white": false,
|
|
|
142 |
// Quote formatting
|
|
|
143 |
"quotmark": true,
|
|
|
144 |
|
|
|
145 |
// Complexity
|
|
|
146 |
|
|
|
147 |
// Maximum number of function parameters.
|
|
|
148 |
"maxparams": 5,
|
|
|
149 |
// Maximum block nesting depth.
|
|
|
150 |
"maxdepth": 3,
|
|
|
151 |
// Maximum number of statements per function.
|
|
|
152 |
"maxstatements": 25,
|
|
|
153 |
// Maximum cyclomatic complexity.
|
|
|
154 |
"maxcomplexity": 6
|
|
|
155 |
}
|