-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
66 lines (66 loc) · 2.08 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"root": true,
"env": {
"es6": true,
"node": true
},
"extends": ["plugin:@typescript-eslint/recommended"],
"plugins": ["unused-imports", "@stylistic"],
"rules": {
"no-var": "error",
"no-console": "warn",
"no-else-return": ["error", { "allowElseIf": false }],
"no-duplicate-imports": "warn",
"no-use-before-define": "off",
"max-depth": ["error", 3],
"unused-imports/no-unused-imports": "warn",
"react/no-unescaped-entities": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/consistent-type-imports": ["error", { "prefer": "type-imports" }],
"@stylistic/newline-per-chained-call": ["error", { "ignoreChainWithDepth": 3 }],
"@stylistic/no-confusing-arrow": ["error", { "onlyOneSimpleParam": true }],
"@stylistic/no-floating-decimal": "error",
"@stylistic/wrap-regex": "error",
"@stylistic/new-parens": ["error", "always"],
"@stylistic/arrow-spacing": "error",
"@stylistic/arrow-parens": ["error", "always"],
"@stylistic/array-element-newline": ["error", "consistent"],
"@stylistic/object-curly-spacing": ["error", "always"],
"@stylistic/object-curly-newline": [
"error",
{
"minProperties": 6,
"consistent": true
}
],
"@stylistic/function-call-spacing": ["error", "never"],
"@stylistic/space-before-blocks": "error",
"@stylistic/keyword-spacing": ["error", { "before": true }],
"@stylistic/padding-line-between-statements": [
"error",
{
"blankLine": "always",
"prev": "directive",
"next": "*"
},
{
"blankLine": "always",
"prev": ["multiline-const", "function"],
"next": ["const", "let", "block-like", "export", "return", "try"]
},
{
"blankLine": "always",
"prev": "block-like",
"next": "*"
},
{
"blankLine": "always",
"prev": "*",
"next": "try"
}
]
},
"parser": "@typescript-eslint/parser",
"ignorePatterns": ["dist", ".eslintrc.json", "README.md"]
}