-
Notifications
You must be signed in to change notification settings - Fork 4
/
lint.json
50 lines (47 loc) · 2.69 KB
/
lint.json
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
40
41
42
43
44
45
46
47
48
49
50
//=============================
// Default Configuration
//=============================
{
//===========Formatter============
"formatter": {
"type": "cli", //xml, json, vim, textmate
"pretty": true,
"colors": true //'auto', true, false
},
//===========Parser============
"parser": {
//"adsafe": false, // if ADsafe should be enforced
//"bitwise": true, // if bitwise operators should not be allowed
//"browser": false, // if the standard browser globals should be predefined
//"cap": false, // if upper case HTML should be allowed
//"css": false, // if CSS workarounds should be tolerated
//"debug": false, // if debugger statements should be allowed
//"devel": false, // if logging should be allowed (console, alert, etc.)
//"eqeqeq": true, // if === should be required
//"es5": true, // if ES5 syntax should be allowed
//"evil": false, // if eval should be allowed
//"forin": false, // if for in statements must filter
//"fragment": false, // if HTML fragments should be allowed
//"immed": true, // if immediate invocations must be wrapped in parens
//"laxbreak": false, // if line breaks should not be checked
//"newcap": true, // if constructor names must be capitalized
//"nomen": false, // if names should be checked
//"on": false, // if HTML event handlers should be allowed
"onevar": false, // if only one var statement per function should be allowed
//"passfail": false, // if the scan should stop on first error
//"plusplus": true, // if increment/decrement should not be allowed
//"regexp": true, // if the . should not be allowed in regexp literals
//"rhino": false, // if the Rhino environment globals should be predefined
//"undef": true, // if variables should be declared before used
//"safe": false, // if use of some browser features should be restricted
//"windows": false, // if MS Windows-specific globals should be predefined
//"strict": false, // require the "use strict"; pragma
//"sub": false, // if all forms of subscript notation are tolerated
//"white": true, // if strict whitespace rules apply
//"widget": false, // if the Yahoo Widgets globals should be predefined
//"indent": 4, // set the expected indentation level
// the names of predefined global variables: the following are defined by nodejs itself
"predef": ["exports", "module", "require", "process", "__filename", "__dirname", "global", "console", "setInterval", "setTimeout", "clearInterval", "clearTimeout"],
"nodejs": true
}
}