-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.eslintrc.json
More file actions
74 lines (73 loc) · 1.99 KB
/
.eslintrc.json
File metadata and controls
74 lines (73 loc) · 1.99 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
{
"root": true,
"extends": "airbnb-base/legacy",
"globals": {
"empty": true,
"XML": true,
"request": true,
"response": true,
"session": true,
"customer": true,
"dw": true
},
"env": {
"es6": true
},
"parserOptions": {
"ecmaVersion": "latest"
},
"rules": {
"indent": [
"error",
4,
{
"SwitchCase": 1,
"VariableDeclarator": 1
}
],
"func-names": "off",
"require-jsdoc": "error",
"valid-jsdoc": [
"error",
{
"preferType": {
"Boolean": "boolean",
"Number": "number",
"object": "Object",
"String": "string"
},
"requireReturn": false,
"requireParamDescription": false,
"requireReturnDescription": false
}
],
"vars-on-top": "off",
"no-undef": 2,
"global-require": "off",
"no-shadow": ["error", { "allow": ["err", "callback"] }],
"max-len": ["error", { "code": 250 }],
"eqeqeq": "off",
"consistent-return": "off",
"no-plusplus": "off",
"no-param-reassign": "off",
"no-empty": "off",
"no-restricted-syntax": [0, "ForInStatement", "ForOfStatement", "LabeledStatement", "WithStatement"],
"dot-notation": [
"error",
{
"allowKeywords": true
}
],
"no-unused-expressions": ["error", { "allowTernary": true }],
"radix": 0,
"no-prototype-builtins": 0,
"guard-for-in": 0,
"no-unreachable": "error",
"comma-dangle": ["error", "never"],
"linebreak-style": "off",
"operator-linebreak": "off",
"no-use-before-define": 0,
"init-declarations": "error"
},
"plugins": ["sitegenesis"]
}