-
Notifications
You must be signed in to change notification settings - Fork 35
/
.eslintrc.json
110 lines (103 loc) · 3.33 KB
/
.eslintrc.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
"env": {
"node": true
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"block-scoped-var": "error",
"brace-style": ["error", "1tbs"],
"camelcase": "warn",
"computed-property-spacing": ["error", "never"],
"curly": ["error", "multi-line"],
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"max-depth": ["warn", 3],
"max-len": ["warn", 110, {"ignoreUrls": true}],
"max-statements": ["warn", 15],
"new-cap": "warn",
"no-extend-native": "error",
"no-mixed-spaces-and-tabs": "error",
"no-trailing-spaces": "error",
"no-unused-vars": ["warn", {"argsIgnorePattern": "^(err|error|req|res)$"}],
"no-use-before-define": ["error", "nofunc"],
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "single", "avoid-escape"],
"semi": ["error", "always"],
"keyword-spacing": ["error", {"before": true, "after": true}],
"space-unary-ops": "warn",
"comma-dangle": "error",
"no-cond-assign": "error",
"no-console": "error",
"no-constant-condition": "error",
"no-control-regex": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-duplicate-case": "error",
"no-empty-character-class": "error",
"no-empty": "error",
"no-ex-assign": "error",
"no-extra-boolean-cast": "error",
"no-extra-parens": "warn",
"no-extra-semi": "error",
"no-func-assign": "error",
"no-inner-declarations": "error",
"no-invalid-regexp": "error",
"no-irregular-whitespace": "error",
"no-negated-in-lhs": "error",
"no-obj-calls": "error",
"no-regex-spaces": "error",
"no-sparse-arrays": "error",
"no-unreachable": "error",
"use-isnan": "error",
"valid-typeof": "error",
"no-unexpected-multiline": "error",
"dot-location": ["error", "property"],
"guard-for-in": "error",
"no-alert": "error",
"no-case-declarations": "error",
"no-else-return": "error",
"no-empty-function": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-extra-label": "error",
"no-fallthrough": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implied-eval": "error",
"no-invalid-this": "error",
"no-loop-func": "error",
"no-multi-spaces": "error",
"no-redeclare": "error",
"no-return-assign": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-useless-call": "error",
"no-useless-concat": "error",
"no-warning-comments": "error",
"wrap-iife": "error",
"strict": ["error", "safe"],
"no-delete-var": "error",
"no-label-var": "error",
"no-undef": "error",
"no-undefined": "error",
"global-require": "error",
"handle-callback-err": ["error", "^(err|error)$"],
"no-new-require": "error",
"no-path-concat": "error",
"block-spacing": "error",
"comma-spacing": "error",
"comma-style": "error",
"key-spacing": "error",
"max-nested-callbacks": ["warn", 4],
"no-whitespace-before-property": "error",
"quote-props": ["error", "as-needed"],
"semi-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": "error",
"space-infix-ops": "error",
"spaced-comment": "error",
"indent": ["error", 2, { "MemberExpression": "off" }]
}
}