-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
74 lines (74 loc) · 2 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
69
70
71
72
73
74
{
"env": {
"node": true,
"mocha": true
},
"extends": [
"airbnb-base",
"eslint:recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module"
},
"plugins": [
"promise"
],
"rules": {
"arrow-body-style": [2, "always"],
"array-bracket-spacing": [2, "always", {
"arraysInArrays": false,
"objectsInArrays": false,
"singleValue": true
}],
"arrow-parens": [2, "always"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"comma-style": [2, "last"],
"curly": [2, "all"],
"func-names": [ 2, "as-needed" ],
"function-paren-newline": [2, "consistent"],
"import/no-extraneous-dependencies": [2, { "devDependencies": true }],
"indent": [2, 2, { "SwitchCase": 1 }],
"keyword-spacing": [2, { "after": true, "before": true }],
"linebreak-style": [2, "unix"],
"max-len": [2, 100, {
"ignoreUrls": true,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}],
"new-cap": [0],
"newline-per-chained-call": [2, { "ignoreChainWithDepth": 10 }],
"no-multiple-empty-lines": [2, { "max": 1 }],
"no-multi-spaces": [2],
"no-nested-ternary": [0],
"no-tabs": [2],
"no-trailing-spaces": [2],
"no-param-reassign": [2, { "props": false }],
"no-underscore-dangle": [0],
"no-unused-vars": [2, {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}],
"no-use-before-define": [2, "nofunc"],
"no-var": [2],
"object-curly-spacing": [2, "always"],
"one-var": [2, {
const: "never",
let: "never",
var: "never"
}],
"padded-blocks": [2, "never"],
"promise/no-return-in-finally": [2],
"promise/no-return-wrap": [2],
"promise/param-names": [2],
"quotes": [2, "single"],
"semi": [2, "always"],
"spaced-comment": [2, "always"],
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {
"anonymous": "always",
"named": "never"
}]
}
}