-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc
69 lines (65 loc) · 1.74 KB
/
.eslintrc
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
{
"env": {
"browser": true,
"node": true,
"amd": true,
"es6": true
},
parserOptions: {
ecmaVersion: 2017
},
"globals": {
"CryptoJS": true
},
"rules": {
// enabled over default
"valid-jsdoc": [1, {
"requireReturn": false,
"prefer": {
"return": "returns"
}
}],
"guard-for-in": 2,
"no-div-regex": 2,
"no-else-return": 2,
"no-eq-null": 2,
"no-floating-decimal": 2,
"no-self-compare": 2,
"no-void": 2,
"radix": 2,
"wrap-iife": 2,
"no-mixed-requires": 2,
"no-new-require": 2,
"no-path-concat": 2,
"brace-style": [2, "1tbs", { "allowSingleLine": false }],
"comma-style": [2, "last"],
"consistent-this": [2, "self"],
"no-inline-comments": 2,
"no-lonely-if": 2,
"no-multiple-empty-lines": [1, {"max": 1}],
"no-nested-ternary": 2,
"space-before-function-paren": [2, "never"],
"keyword-spacing": 1,
"space-before-blocks": 1,
"object-curly-spacing": [1, "always"],
"computed-property-spacing": 1,
"array-bracket-spacing": 1,
"space-in-parens": 1,
"space-unary-ops": 1,
"spaced-comment": 1,
"max-len": [1, 120, 4],
"quotes": [2, "double", "avoid-escape"],
"no-use-before-define": [1, "nofunc"],
"new-cap": 0,
"indent": [2, 4],
//
// Disabled
//
// for consistency
"dot-notation": 0,
// app's functions shadow global helpers
"no-shadow": 0,
// disabled for use of _jQuery
"no-underscore-dangle": 0
}
}