-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.jshintrc
executable file
·28 lines (20 loc) · 888 Bytes
/
.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
27
28
{
// JSHint Configuration File
// See http://jshint.com/docs/ for more details
// Settings
"maxerr" : 100, // {int} Maximum error before stopping
// Predefined globals whom JSHint will ignore.
"node" : true, // Standard node globals
// Enforcing
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"curly" : true, // true: Require {} for every new block or scope
"eqeqeq" : true,
"forin" : true,
"freeze" : true,
"nonbsp" : true,
"strict" : true,
"undef" : true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused" : true,
// Relaxing
"sub" : true // true: Tolerate using `[]` notation when it can still be expressed in dot notation
}