-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
58 lines (58 loc) · 2.03 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
{
"root": true,
"plugins": ["header"],
"rules": {
"header/header": [
"error",
"block",
[
"",
" * Meelo is a music server and application to enjoy your personal music files anywhere, anytime you want.",
" * Copyright (C) 2023",
" *",
" * Meelo is free software: you can redistribute it and/or modify",
" * it under the terms of the GNU General Public License as published by",
" * the Free Software Foundation, either version 3 of the License, or",
" * (at your option) any later version.",
" *",
" * Meelo is distributed in the hope that it will be useful,",
" * but WITHOUT ANY WARRANTY; without even the implied warranty of",
" * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the",
" * GNU General Public License for more details.",
" *",
" * You should have received a copy of the GNU General Public License",
" * along with this program. If not, see <http://www.gnu.org/licenses/>.",
" "
],
2
],
"unused-imports/no-unused-imports": "error",
"import/first": "error",
"import/newline-after-import": "error",
"import/no-duplicates": "error",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-duplicate-imports": "error",
"init-declarations": "error",
"no-else-return": "error",
"curly": ["error", "all"],
"one-var": ["error", "never"],
"sort-imports": ["warn", { "ignoreDeclarationSort": true }],
"vars-on-top": "warn",
"default-case-last": "warn",
"linebreak-style": ["error", "unix"],
"max-statements-per-line": ["error", { "max": 1 }],
"no-unused-private-class-members": "error",
"max-depth": ["error", { "max": 3 }],
"consistent-this": "error",
"no-console": "error",
"no-eval": "error",
"no-return-await": "error",
"no-unneeded-ternary": ["error"],
"no-shadow": "error"
}
}