-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
68 lines (66 loc) · 2.15 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
{
"root": true,
"extends": "airbnb-base",
"env": {
"node": true
},
"parserOptions": {
"sourceType": "script",
"ecmaVersion": 2017
},
"globals": {
"GetEnvironmentVariable": true
},
"rules": {
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error", "1tbs"],
"comma-dangle": ["error", "always-multiline"],
"consistent-return": "off",
"computed-property-spacing": ["error", "never"],
"handle-callback-err": ["error", "^.*err" ],
"max-len": "off",
"new-cap": "off",
"no-console": "off",
"no-else-return": "error",
"no-eq-null": "off",
"no-extra-semi": "error",
"no-loop-func": "off",
"no-lone-blocks": "error",
"no-negated-condition": "error",
"no-shadow": "off",
"no-undef": "error",
"no-underscore-dangle": "off",
"no-use-before-define": ["error", "nofunc"],
"no-useless-rename": "error",
"object-curly-spacing": ["error", "never"],
"quotes": "off",
"quote-props": ["error", "as-needed"],
"keyword-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never"}],
"space-in-parens": "off",
"strict": "error",
"no-empty": "error",
"no-empty-function": "error",
"yoda": "error",
"padded-blocks": "off",
"eqeqeq": ["error", "smart"],
"linebreak-style": ["error", "windows"],
"func-names": "error",
"id-length": ["error", {"exceptions": ["_", "$", "e", "i", "j", "k", "q", "x", "y"]}],
"radix": "off",
"spaced-comment": "off",
"generator-star-spacing": ["error", {"before": false, "after": true}],
"arrow-body-style": "off",
"newline-per-chained-call": "off",
"no-restricted-syntax": [
"error",
"DebuggerStatement",
"LabeledStatement",
"WithStatement"
],
"arrow-parens": "error",
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
"prefer-spread": "error"
}
}