1+ {
2+ // JSHint Default Configuration File (as on JSHint website)
3+ // See http://jshint.com/docs/ for more details
4+
5+ "maxerr" : 50 ,
6+ // {int} Maximum error before stopping
7+
8+ // Enforcing
9+ "bitwise" : true ,
10+ // true: Prohibit bitwise operators (&, |, ^, etc.)
11+ "camelcase" : true ,
12+ // true: Identifiers must be in camelCase
13+ "curly" : true ,
14+ // true: Require {} for every new block or scope
15+ "eqeqeq" : true ,
16+ // true: Require triple equals (===) for comparison
17+ "forin" : true ,
18+ // true: Require filtering for..in loops with obj.hasOwnProperty()
19+ "immed" : true ,
20+ // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
21+ "indent" : 4 ,
22+ // {int} Number of spaces to use for indentation
23+ "latedef" : " nofunc" ,
24+ // true: Require variables/functions to be defined before being used
25+ "newcap" : true ,
26+ // true: Require capitalization of all constructor functions e.g. `new F()`
27+ "noarg" : true ,
28+ // true: Prohibit use of `arguments.caller` and `arguments.callee`
29+ "noempty" : true ,
30+ // true: Prohibit use of empty blocks
31+ "nonew" : false ,
32+ // true: Prohibit use of constructors for side-effects (without assignment)
33+ "plusplus" : false ,
34+ // true: Prohibit use of `++` & `--`
35+ "quotmark" : " single" ,
36+ // Quotation mark consistency:
37+ "smarttabs" : true ,
38+ "trailing" : true ,
39+ "undef" : true ,
40+ // true: Require all non-global variables to be declared (prevents global leaks)
41+ "unused" : " vars" ,
42+ // true: Require all defined variables be used
43+ "strict" : false ,
44+ // true: Requires all functions run in ES5 Strict Mode
45+ "maxparams" : false ,
46+ // {int} Max number of formal params allowed per function
47+ "maxdepth" : false ,
48+ // {int} Max depth of nested blocks (within functions)
49+ "maxstatements" : false ,
50+ // {int} Max number statements per function
51+ "maxcomplexity" : false ,
52+ // {int} Max cyclomatic complexity per function
53+ "maxlen" : false ,
54+ // {int} Max number of characters per line
55+
56+ // Relaxing
57+ "asi" : false ,
58+ // true: Tolerate Automatic Semicolon Insertion (no semicolons)
59+ "boss" : false ,
60+ // true: Tolerate assignments where comparisons would be expected
61+ "debug" : false ,
62+ // true: Allow debugger statements e.g. browser breakpoints.
63+ "eqnull" : false ,
64+ // true: Tolerate use of `== null`
65+ "esnext" : true ,
66+ // true: Allow ES.next (ES6) syntax (ex: `const`)
67+ "moz" : false ,
68+ // true: Allow Mozilla specific syntax (extends and overrides esnext features)
69+ // (ex: `for each`, multiple try/catch, function expression…)
70+ "evil" : false ,
71+ // true: Tolerate use of `eval` and `new Function()`
72+ "expr" : true ,
73+ // true: Tolerate `ExpressionStatement` as Programs
74+ "funcscope" : false ,
75+ // true: Tolerate defining variables inside control statements"
76+ "globalstrict" : false ,
77+ // true: Allow global "use strict" (also enables 'strict')
78+ "iterator" : false ,
79+ // true: Tolerate using the `__iterator__` property
80+ "lastsemic" : false ,
81+ // true: Tolerate omitting a semicolon for the last statement of a 1-line block
82+ "laxbreak" : false ,
83+ // true: Tolerate possibly unsafe line breakings
84+ "laxcomma" : false ,
85+ // true: Tolerate comma-first style coding
86+ "loopfunc" : false ,
87+ // true: Tolerate functions being defined in loops
88+ "multistr" : true ,
89+ // true: Tolerate multi-line strings
90+ "proto" : false ,
91+ // true: Tolerate using the `__proto__` property
92+ "scripturl" : false ,
93+ // true: Tolerate script-targeted URLs
94+ "shadow" : false ,
95+ // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
96+ "sub" : false ,
97+ // true: Tolerate using `[]` notation when it can still be expressed in dot notation
98+ "supernew" : false ,
99+ // true: Tolerate `new function () { ... };` and `new Object;`
100+ "validthis" : false ,
101+ // true: Tolerate using this in a non-constructor function
102+
103+ // Environments
104+ "browser" : true ,
105+ // Web Browser (window, document, etc)
106+ "couch" : false ,
107+ // CouchDB
108+ "devel" : true ,
109+ // Development/debugging (alert, confirm, etc)
110+ "dojo" : false ,
111+ // Dojo Toolkit
112+ "jquery" : true ,
113+ // jQuery
114+ "mootools" : false ,
115+ // MooTools
116+ "node" : true ,
117+ // Node.js
118+ "nonstandard" : false ,
119+ // Widely adopted globals (escape, unescape, etc)
120+ "prototypejs" : false ,
121+ // Prototype and Scriptaculous
122+ "rhino" : false ,
123+ // Rhino
124+ "worker" : false ,
125+ // Web Workers
126+ "wsh" : false ,
127+ // Windows Scripting Host
128+ "yui" : false ,
129+ // Yahoo User Interface
130+
131+ "globals" : {
132+ "angular" : false ,
133+ "describe" : false ,
134+ "it" : false ,
135+ "afterEach" : false ,
136+ "beforeEach" : false ,
137+ "confirm" : false ,
138+ "context" : false ,
139+ "expect" : false ,
140+ "jasmine" : false ,
141+ "JSHINT" : false ,
142+ "mostRecentAjaxRequest" : false ,
143+ "qq" : false ,
144+ "spyOn" : false ,
145+ "spyOnEvent" : false ,
146+ "xdescribe" : false
147+ }
148+ }
0 commit comments