-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
82 lines (82 loc) · 3.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"root": true,
"ignorePatterns": ["**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-duplicate-imports": "error",
"no-self-compare": "error",
"no-template-curly-in-string": "error",
"arrow-body-style": ["error", "as-needed"],
"block-scoped-var": "error",
"curly": ["error", "all"],
"default-param-last": "error",
"eqeqeq": "error",
"func-style": [
"error",
"declaration",
{
"allowArrowFunctions": true
}
],
"no-confusing-arrow": "error",
"no-console": "warn",
"no-else-return": "error",
"no-useless-computed-key": "error",
"no-var": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-template": "error",
"yoda": [
"error",
"never",
{
"exceptRange": true
}
],
"array-bracket-spacing": ["error", "never"],
"arrow-parens": "error",
"arrow-spacing": "error",
"block-spacing": "error",
"brace-style": "error",
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"computed-property-spacing": "error",
"eol-last": "error",
"func-call-spacing": "error",
"jsx-quotes": ["error", "prefer-single"],
"key-spacing": "error",
"keyword-spacing": "error",
"linebreak-style": "error",
"lines-between-class-members": "error",
"max-len": [
"error",
{
"code": 100
}
],
"new-parens": "error",
"newline-per-chained-call": [
"error",
{
"ignoreChainWithDepth": 4
}
],
"no-multi-spaces": "error",
"no-multiple-empty-lines": "error",
"no-trailing-spaces": "error",
"no-whitespace-before-property": "error",
"object-curly-spacing": ["error", "always"],
"quotes": ["error", "single"],
"semi": ["error", "never"],
"switch-colon-spacing": "error",
"template-curly-spacing": "error"
}
}
]
}