-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc
37 lines (37 loc) · 956 Bytes
/
.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
{
"rules": {
"quotes": [ "warn", "single", { "allowTemplateLiterals": true } ],
"brace-style": ["warn", "stroustrup", { "allowSingleLine": true }],
"keyword-spacing": [ "warn", { "before": true, "after": true } ],
"space-before-blocks": [ "warn", "always" ],
"space-before-function-paren": [ "warn", "always" ],
"no-cond-assign": [ "error", "always" ],
"no-unused-vars": [ "error" ],
"no-var": [ "error" ],
"semi": [ "error", "never" ],
"comma-dangle": [ "error", "never" ],
"prefer-const": [ "error" ],
"no-console": [ "error" ],
"indent": [
"warn",
2
],
"array-bracket-spacing": [
"warn",
"always",
{
"arraysInArrays": true
}
]
},
"env": {
"es6": true,
"mocha": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:jest/recommended"],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
}
}