-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc-default
58 lines (54 loc) · 1.63 KB
/
.eslintrc-default
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
{
"rules": {
// Possible Errors
"no-console": 2,
"no-extra-parens": 2,
"valid-jsdoc": 2,
"no-unexpected-multiline": 2,
// Best Practices
"accessor-pairs": 2,
"block-scoped-var": 2,
"dot-location": [2, "property"],
"guard-for-in": 2,
"no-else-return": 2,
"no-eq-null": 2,
"no-floating-decimal": 2,
"no-process-env": 2,
"no-self-compare": 2,
"no-warning-comments": [1, { "terms": ["todo"], "location": "anywhere" }],
"no-throw-literal": 2,
"radix": 2,
"vars-on-top": 2,
"wrap-iife": 2,
// Variables
"no-catch-shadow": 2,
"no-undefined": 2,
// Stylistic Issues
"array-bracket-spacing": 2,
"brace-style": 2,
"comma-style": 2,
"computed-property-spacing": 2,
"consistent-this": [2, "self"],
"func-style": [2, "declaration"],
"indent": 2,
"linebreak-style": 2,
"max-nested-callbacks": [2, 3],
"no-lonely-if": 2,
"no-multiple-empty-lines": [1, { "max": 2 }],
"no-nested-ternary": 2,
"no-underscore-dangle": 0,
"no-unneeded-ternary": 2,
"object-curly-spacing": 2,
"one-var": [2, "never"],
"operator-linebreak": 2,
"quotes": [2, "single", "avoid-escape"],
"space-after-keywords": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, "never"],
"space-in-parens": 2,
"spaced-comment": 2,
// ECMAScript 6
"constructor-super": 2,
"no-this-before-super": 2
}
}