-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
88 lines (88 loc) · 2.57 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
{
"env": {
"es6": true,
"node": true
},
"plugins": [
"import",
"jsonc",
"no-unsanitized",
"sonarjs",
"simple-import-sort",
"sort-keys-fix",
"unicorn",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": ["tsconfig.json"]
},
"overrides": [
{
"files": ["src/**/*.ts"],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:jsonc/recommended-with-jsonc",
"plugin:sonarjs/recommended",
"plugin:unicorn/recommended",
"plugin:prettier/recommended",
"plugin:@cspell/recommended"
],
"parser": "@typescript-eslint/parser",
"rules": {
"prettier/prettier": "error",
"unicorn/switch-case-braces": "off",
"unicorn/prefer-module": "off",
"@typescript-eslint/no-magic-numbers": "off",
"unicorn/no-object-as-default-parameter": "off",
"unicorn/no-null": "off",
"unicorn/no-empty-file": "off",
"sonarjs/prefer-single-boolean-return": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-await-expression-member": "off",
"unicorn/no-useless-undefined": "off",
"@typescript-eslint/unbound-method": "error",
"import/no-extraneous-dependencies": [
"error",
{
"packageDir": "./"
}
],
"sonarjs/prefer-immediate-return": "off",
"no-case-declarations": "off",
"no-async-promise-executor": "off",
"sonarjs/no-duplicate-string": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/no-array-for-each": "off",
"unicorn/import-style": "off",
"unicorn/prefer-event-target": "off",
"simple-import-sort/imports": "warn",
"simple-import-sort/exports": "warn",
"no-console": ["error"],
"@typescript-eslint/no-unnecessary-type-constraint": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "error"
}
},
{
"files": ["*.spec.ts", "*.test.ts"],
"env": {
"jest": true
},
"rules": {
"@typescript-eslint/unbound-method": "off",
"@typescript-eslint/no-magic-numbers": "off",
"sonarjs/no-unused-collection": "warn",
"unicorn/consistent-function-scoping": "off"
}
},
{
"files": ["metrics.helper.ts", "*.module.ts"],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/no-magic-numbers": "off"
}
}
]
}