forked from evanlucas/lintit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslintrc.json
61 lines (61 loc) · 1.53 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
{
"parserOptions": {
"ecmaVersion": 2018
},
"env": {
"es6": true,
"node": true
},
"rules": {
"arrow-body-style": [2, "always"],
"arrow-parens": [2, "always"],
"arrow-spacing": [2],
"comma-style": [2, "first"],
"comma-spacing": [2, { "before": false, "after": true }],
"comma-dangle": [2, "never"],
"dot-notation": [2],
"eol-last": [2],
"eqeqeq": [2, "allow-null"],
"handle-callback-err": [2, "^(err|er)$"],
"indent": ["error", 2, {
"ArrayExpression": "first",
"ObjectExpression": "first",
"FunctionExpression": {
"body": 1,
"parameters": "first"
},
"MemberExpression": 1,
"SwitchCase": 1,
"CallExpression": {
"arguments": "first"
},
"FunctionDeclaration": {
"body": 1,
"parameters": "first"
}
}],
"key-spacing": [2, {
"beforeColon": false,
"afterColon": true
}],
"keyword-spacing": 2,
"max-len": [2, 80, 4, { "ignoreComments": true }],
"no-multi-spaces": [2],
"no-undef": [2],
"no-unused-vars": [2, { "vars": "all", "args": "none" }],
"no-tabs": [2],
"no-trailing-spaces": [2],
"quotes": [1, "single", "avoid-escape"],
"semi": [2, "never"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"space-in-parens": [2, "never"],
"space-infix-ops": [2],
"space-unary-ops": [2],
"strict": [2, "global"]
}
}