-
Notifications
You must be signed in to change notification settings - Fork 7
/
.jshintrc
executable file
·17 lines (15 loc) · 1.02 KB
/
.jshintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
// JSHint website : http://www.jshint.com/
// See http://jshint.com/docs/ for more details
"maxerr" : 50, // {int} Maximum error before stopping
// Enforcing
"curly" : true, // true: Require {} for every new block or scope
"forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty()
"newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()`
"noarg" : true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
"noempty" : true, // true: Prohibit use of empty blocks
"nonew" : true, // true: Prohibit use of constructors for side-effects (without assignment)
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused" : true, // true: Require all defined variables be used
"strict" : true // true: Requires all functions run in ES5 Strict Mode
}