-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc
49 lines (49 loc) · 1.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
{
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"ecmaFeatures": {}
},
"plugins": ["sort-requires"],
"rules": {
"array-bracket-spacing": "error",
"arrow-parens": ["error", "always"],
"arrow-spacing": "error",
"camelcase": "error",
"comma-dangle": ["error", "never"],
"indent": ["error", "tab", {
"MemberExpression": 1,
"VariableDeclarator": 1,
"outerIIFEBody": 1,
"FunctionDeclaration": {
"parameters": 1,
"body": 1
},
"FunctionExpression": {
"parameters": 1,
"body": 1
},
"CallExpression": {
"arguments": 1
},
"ArrayExpression": 1,
"ObjectExpression": 1,
"ImportDeclaration": 1
}],
"no-console": ["warn",
{
"allow": ["warn", "error", "info"]
}],
"no-debugger": "error",
"no-duplicate-case": "error",
"object-curly-spacing": ["error", "always"],
"padding-line-between-statements": ["error",
{
"blankLine": "always", "prev": "*", "next": "return"
}],
"prefer-const": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"sort-requires/sort-requires": "error"
}
}