-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.jshintrc
executable file
·38 lines (38 loc) · 1.77 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
34
35
36
37
38
{
"curly": true, // true: Require {} for every new block or scope
"immed": true, // true: Require immediate invocations to be wrapped in parens e.g. `(function () { } ());`
"indent": 4, // {int} Number of spaces to use for indentation
"latedef": false, // true: Require variables/functions to be defined before being used
"newcap": true, // true: Require capitalization of all constructor functions e.g. `new F()`
"noarg": true, // true: Prohibit use of `arguments.caller` and `arguments.callee`
"quotmark": false, // Quotation mark consistency:
// false : do nothing (default)
// true : ensure whatever is used is consistent
// "single" : require single quotes
// "double" : require double quotes
"sub": true, // true: Tolerate using `[]` notation when it can still be expressed in dot notation
"undef": true, // true: Require all non-global variables to be declared (prevents global leaks)
"unused": false, // true: Require all defined variables be used
"boss": true, // true: Tolerate assignments where comparisons would be expected
"eqnull": false, // true: Tolerate use of `== null`
"browser": true, // Web Browser (window, document, etc)
"es5": false, // true: Allow ES5 syntax (ex: getters and setters)
"predef": ["console", "alert"],
"globals": { // Globals variables.
"react": true,
"require": true,
"module": true,
"_":false,
"$":true,
"process":true,
"global":true,
"__dirname": true,
"describe": true,
"beforeEach": true,
"expect": true,
"it": true,
"jest": true,
"jasmine": true,
"spyOn": true
}
}