-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
160 lines (156 loc) · 4.54 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
{
"plugins": ["@typescript-eslint", "unused-imports"],
"extends": [
"./node_modules/gts/",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parserOptions": {
"tsconfigRootDir": "./",
"project": ["./app/server/tsconfig.json", "./app/client/tsconfig.json"],
"createDefaultProgram": true
},
"rules": {
"quotes": ["warn", "single", { "avoidEscape": true }],
"prefer-arrow-callback": "error",
"object-property-newline": "off",
"curly": "error",
"eqeqeq": "warn",
"no-async-promise-executor": "warn",
"no-case-declarations": "warn",
"no-prototype-builtins": "warn",
"no-useless-escape": "warn",
"prefer-const": "warn",
"prefer-spread": "warn",
"prettier/prettier": "off",
"@typescript-eslint/adjacent-overload-signatures": "warn",
"@typescript-eslint/await-thenable": "warn",
"@typescript-eslint/ban-types": "warn",
"@typescript-eslint/explicit-module-boundary-types": [
"warn",
{
"allowHigherOrderFunctions": true,
"allowTypedFunctionExpressions": true,
"allowDirectConstAssertionInArrowFunctions": true
}
],
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-floating-promises": "warn",
"@typescript-eslint/no-for-in-array": "warn",
"@typescript-eslint/no-implied-eval": ["warn"],
"@typescript-eslint/consistent-type-imports": [
"error",
{
"disallowTypeAnnotations": false,
"fixStyle": "separate-type-imports"
}
],
"@typescript-eslint/no-misused-promises": [
"warn",
{
"checksVoidReturn": false
}
],
"@typescript-eslint/no-unused-expressions": ["warn"],
"@typescript-eslint/no-unused-vars": ["warn"],
"@typescript-eslint/no-unsafe-assignment": ["off"],
"@typescript-eslint/no-unsafe-member-access": ["warn"],
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-this-alias": "warn",
"@typescript-eslint/no-unnecessary-type-assertion": "warn",
"@typescript-eslint/prefer-optional-chain": "warn",
"@typescript-eslint/prefer-regexp-exec": "warn",
"@typescript-eslint/require-await": "warn",
"@typescript-eslint/restrict-plus-operands": "warn",
"@typescript-eslint/restrict-template-expressions": "warn",
"@typescript-eslint/unbound-method": "warn",
"no-debugger": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"node/no-unpublished-import": "off",
"@typescript-eslint/prefer-readonly": [
"error",
{ "onlyInlineLambdas": true }
],
"@typescript-eslint/member-ordering": [
"warn",
{
"default": [
"signature",
"private-static-field",
"protected-static-field",
"public-static-field",
"private-decorated-field",
"private-instance-field",
"protected-abstract-field",
"protected-decorated-field",
"protected-instance-field",
"public-abstract-field",
"public-decorated-field",
"public-instance-field",
"private-static-get",
"private-static-set",
"protected-static-get",
"protected-static-set",
"public-static-get",
"public-static-set",
"static-get",
"static-set",
"private-decorated-get",
"private-decorated-set",
"private-instance-get",
"private-instance-set",
"private-get",
"private-set",
"protected-abstract-get",
"protected-abstract-set",
"protected-decorated-get",
"protected-decorated-set",
"protected-instance-get",
"protected-instance-set",
"protected-get",
"protected-set",
"public-abstract-get",
"public-abstract-set",
"abstract-get",
"abstract-set",
"public-decorated-get",
"public-decorated-set",
"decorated-get",
"decorated-set",
"public-instance-get",
"public-instance-set",
"instance-get",
"instance-set",
"public-get",
"public-set",
"get",
"set",
"private-constructor",
"protected-constructor",
"public-constructor",
"private-static-method",
"protected-static-method",
"public-static-method",
"private-decorated-method",
"protected-abstract-method",
"protected-decorated-method",
"protected-instance-method",
"public-abstract-method",
"public-decorated-method",
"public-instance-method"
]
}
],
"@typescript-eslint/explicit-member-accessibility": [
"warn",
{
"accessibility": "explicit"
}
],
"unused-imports/no-unused-imports": "warn",
"unused-imports/no-unused-member-access": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"node/no-extraneous-import": "off"
}
}