-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.jshintrc
26 lines (24 loc) · 1.48 KB
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{
"maxerr" : 50, // Maximum error before stopping
"curly" : true, // Require {} for every new block or scope
"forin" : true, // Require filtering for..in loops with obj.hasOwnProperty()
"eqeqeq" : true, // Require triple equals (===) for comparison
"undef" : true, // Require all non-global variables to be declared (prevents global leaks)
"latedef" : false, // Require variables/functions to be defined before being used
"newcap" : true, // Require capitalization of all constructor functions e.g. `new F()`
"noempty" : true, // Prohibit use of empty blocks
"nonew" : true, // Prohibit use of constructors for side-effects (without assignment)
"quotmark" : false, // Quotation mark consistency: ensure whatever is used is consistent
"unused" : true, // Require all defined variables be used
"strict" : false, // Requires all functions run in ES5 Strict Mode
"maxdepth" : 4, // Max depth of nested blocks (within functions)
"maxlen" : 90, // Max number of characters per line
// Environment
"browser" : true, // Web Browser (window, document, etc)
"debug" : true, // Allow debugger statements e.g. browser breakpoints
"jquery" : true, // jQuery
"node" : true, // Node.js
"globals": {
"define" : true
}
}