-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
108 lines (108 loc) · 3.01 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
{
"extends": ["prettier"],
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "prettier"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"@typescript-eslint/member-ordering": [
"warn",
{
"default": [
"private-static-field",
"protected-static-field",
"public-static-field",
"private-static-method",
"protected-static-method",
"public-static-method",
"private-instance-field",
"protected-instance-field",
"public-instance-field",
"private-constructor",
"protected-constructor",
"public-constructor",
"private-instance-method",
"protected-instance-method",
"public-instance-method"
]
}
],
"array-bracket-newline": [
"warn",
{
"multiline": true
}
],
"array-bracket-spacing": ["warn", "never"],
"arrow-body-style": ["warn", "as-needed"],
"block-spacing": ["warn", "always"],
"camelcase": [
"off",
{
"properties": "never"
}
],
"comma-dangle": [
"warn",
{
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "only-multiline",
"exports": "only-multiline",
"functions": "only-multiline"
}
],
"dot-notation": "warn",
"eol-last": ["warn", "always"],
"eqeqeq": ["error", "always"],
"indent": [
"warn",
4,
{
"SwitchCase": 1,
"ignoreComments": true
}
],
"jsx-quotes": ["warn", "prefer-double"],
"linebreak-style": ["error", "unix"],
"no-console": "error",
"no-extra-semi": "error",
"no-multi-spaces": ["warn"],
"no-tabs": ["warn"],
"no-trailing-spaces": ["warn", { "ignoreComments": true }],
"no-unused-expressions": [
"warn",
{
"allowShortCircuit": true
}
],
"prettier/prettier": [
"warn",
{
"usePrettierrc": true
}
],
"quotes": [
"warn",
"single",
{
"avoidEscape": true
}
],
"require-await": "error",
"semi": ["warn", "always"],
"use-isnan": [
"error",
{
"enforceForSwitchCase": true
}
],
"valid-typeof": "warn",
"yoda": ["error", "never"]
}
}