-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
66 lines (66 loc) · 1.79 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
{
"extends": ["eslint:all", "plugin:node/recommended", "idiomatic"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"func-names": ["error", "never"],
"func-style": 0,
"linebreak-style": 0,
"indent": [
"error",
2,
{
"SwitchCase": 1
}
],
"max-statements": 0,
"no-console": ["error", {
"allow": ["error"]
}],
"no-warning-comments": 0,
"one-var": 0,
"padded-blocks": 0,
"prefer-named-capture-group": 0,
"prefer-object-spread": 0,
"quotes": ["error", "single", {
"allowTemplateLiterals": true
}],
"quote-props": 0,
"semi": ["error", "never"],
"space-infix-ops": 0,
"space-in-parens": [2, "always", {
"exceptions": ["empty"]
}],
"class-methods-use-this": 0,
"multiline-ternary": 0,
"no-ternary": 0,
"max-params": ["error", 4],
"array-element-newline": ["error", "consistent"],
"no-magic-numbers": ["error", {
"ignore": [0, 1, -1]
}],
"max-len": ["error", {
"code": 100,
"ignoreUrls": true,
"ignoreTrailingComments": true,
"ignoreTemplateLiterals": true,
"ignoreStrings": true
}],
"max-lines-per-function": 0,
"object-shorthand": ["error", "always", {
"avoidQuotes": true
}],
"max-lines": ["error", {
"max": 400,
"skipBlankLines": true,
"skipComments": true
}],
"comma-dangle": ["error", "always-multiline"]
},
"env": {
"node": true,
"es6": true
}
}