-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.jshintrc
executable file
·33 lines (30 loc) · 1.28 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
27
28
29
30
31
32
33
{
"maxerr" : 0,
// Enforcing
"es6" : true,
"bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.)
"asi" : true, // true: Tolerate Automatic Semicolon Insertion (no semicolons)
"camelcase" : false, // true: Identifiers must be in camelCase
"curly" : false, // true: Require {} for every new block or scope
"eqeqeq" : true, // true: Require triple equals (===) for comparison
"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
"esnext" : true, // true: Allow ES.next (ES6) syntax (ex: `const`)
"eqnull" : false, // true: Allow `== null` and `!= null`
// Environments
"node" : true,
// Custom Globals
"globals": {
"define" : false,
"jasmine" : false,
"describe" : false,
"before" : false,
"beforeEach" : false,
"after" : false,
"afterEach" : false,
"it" : false,
"inject" : false,
"spyOn" : false
}
}