forked from binarykitchen/avconv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jshintrc
39 lines (30 loc) · 1.47 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
39
{
// Example: https://github.com/jshint/jshint/blob/master/examples/.jshintrc
// Documentation: http://www.jshint.com/docs/
"maxerr" : 30, // {int} Maximum error before stopping
// Enforcing
"indent" : 4, // {int} Number of spaces to use for indentation
"latedef" : true, // true: Require variables/functions to be defined before being used
"newcap" : true, // true: Require capitalization of all constructor functions e.g. `new F()`
"strict" : false, // Require `use strict` pragma in every file.
"quotmark" : false, // Quotation mark consistency
// Relaxing
"shadow" : true, // true: Allows re-define variables later in code e.g. `var x=1; x=2;`
"supernew" : true, // true: Tolerate `new function () { ... };` and `new Object;`
"loopfunc" : true, // true: Tolerate functions being defined in loops
// Environments
"browser" : true, // Web Browser (window, document, etc)
"devel" : true, // Development/debugging (alert, confirm, etc)
"node" : true, // Node.js
"-W008" : true, // A leading decimal point can be confused with a dot
// mh: disabled for now because of switch case block issue:
// https://github.com/jshint/jshint/issues/935
"indent": false,
// Custom globals
"predef": [
"define",
"suite",
"suiteSetup",
"test"
]
}