-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
36 lines (36 loc) · 1.05 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
{
"env": {
"browser": true,
"es6": true,
"jest": true
},
"extends": ["eslint:recommended"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"rules": {
"arrow-body-style": "error",
"no-console": "error",
"no-else-return": ["error", { "allowElseIf": false }],
"no-plusplus": "error",
"no-unused-expressions": "error",
"no-unused-vars": ["error", { "ignoreRestSiblings": true }],
"no-var": "error",
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": ["const", "let", "var", "directive", "if", "break"], "next": "*" },
{ "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"] },
{ "blankLine": "any", "prev": "directive", "next": "directive" }
],
"prefer-const": "error",
"prefer-template": "error",
"quote-props": "off",
"quotes": "off"
}
}