-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
47 lines (47 loc) · 1.12 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
{
"env": {
"es2021": true,
"node": true,
"jest": true
},
"extends": ["standard"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"parser": "@typescript-eslint/parser",
"rules": {
"brace-style": ["error", "stroustrup"],
"semi": ["error", "always"],
"space-before-function-paren": "off",
"comma-dangle": ["error", "only-multiline"],
"no-unused-expressions": "off",
"no-sequences": "off",
"eqeqeq": "error",
"array-element-newline": [
"error",
{ "ArrayExpression": "consistent", "ArrayPattern": "never" }
],
"array-bracket-newline": ["error", { "multiline": true }],
"array-bracket-spacing": [
"error",
"always",
{
"arraysInArrays": false,
"objectsInArrays": false,
"singleValue": false
}
],
"no-unneeded-ternary": "error",
"indent": [
2,
2,
{
"flatTernaryExpressions": true,
"ignoredNodes": ["ConditionalExpression > *"],
"SwitchCase": 1
}
],
"newline-per-chained-call": ["error", { "ignoreChainWithDepth": 3 }]
}
}