-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
95 lines (95 loc) · 2.43 KB
/
.eslintrc
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
{
"root": true,
"env": {
"es2022": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"settings": {
"import/extensions": [".js", ".ts"],
"import/parsers": {
"@typescript-eslint/parser": [".ts"]
},
"import/resolver": {
"typescript": {
"project": "tsconfig.json"
}
}
},
"plugins": [
"@typescript-eslint",
"sort-keys-fix",
"typescript-sort-keys",
"sonarjs",
"promise",
"prettier"
],
"extends": [
"standard-with-typescript",
"eslint:recommended",
"plugin:promise/recommended",
"plugin:import/errors",
"plugin:sonarjs/recommended",
"prettier",
"plugin:prettier/recommended",
"plugin:typescript-sort-keys/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/typescript",
"plugin:prettier/recommended"
],
"rules": {
"@typescript-eslint/consistent-type-imports": [
"error",
{
"prefer": "type-imports"
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"object-shorthand": "warn",
"typescript-sort-keys/string-enum": [
"warn",
"asc",
{
"caseSensitive": true,
"natural": false
}
],
"typescript-sort-keys/interface": [
"warn",
"asc",
{
"caseSensitive": true,
"natural": false,
"requiredFirst": true
}
],
"@typescript-eslint/ban-ts-comment": "off",
"no-console": "error",
"no-useless-constructor": "off",
"lines-between-class-members": "off",
"promise/always-return": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-non-null-assertion": "off",
"space-before-function-paren": "off",
"eslint-disable-next-line": "off",
"prettier/prettier": "error",
"@typescript-eslint/no-floating-promises": [
"error",
{
"ignoreVoid": false
}
],
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/return-await": "off",
"@typescript-eslint/restrict-plus-operands": "off",
"@typescript-eslint/strict-boolean-expressions": "off",
"@typescript-eslint/no-extraneous-class": "off"
}
}