-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
67 lines (67 loc) · 2.59 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
{
"extends": "zardoy",
"rules": {
"curly": "off",
"import/no-deprecated": "off",
// investigate why it is soooo slow...
"import/no-named-as-default": "off",
"import/no-named-as-default-member": "off",
"default-case": "off",
"sonarjs/no-duplicate-string": "off",
"@typescript-eslint/naming-convention": "off",
"no-empty-function": "off",
"no-useless-return": "off",
"no-template-curly-in-string": "off",
"@typescript-eslint/no-explicit-any": "off",
// better to fix rule
"unicorn/consistent-destructuring": "off",
"@typescript-eslint/no-restricted-imports": [
"error",
{
"patterns": [
{
"group": [
"typescript*",
"!../*"
],
"message": "Use global ts type and variable instead"
// "allowTypeImports": true
}
]
}
],
"unicorn/switch-case-braces": "off",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/ban-types": "off",
"sonarjs/prefer-single-boolean-return": "off",
"unicorn/no-typeof-undefined": "off", // todo disable globally
"@typescript-eslint/consistent-type-definitions": "off"
},
"overrides": [
{
"files": "typescript/**",
"parserOptions": {
"project": "typescript/tsconfig.json"
},
"rules": {
"@typescript-eslint/padding-line-between-statements": "off",
"arrow-body-style": "off",
"import/no-extraneous-dependencies": "off",
"@typescript-eslint/no-loop-func": "off",
// always used intentionally as workaround for possibly undefined types (to not declare super complex types - cases)
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
// todo configure instead
"complexity": "off",
"max-params": "off",
"max-depth": "off",
"@typescript-eslint/dot-notation": "off",
"no-bitwise": "off",
// todo just not sure
"@typescript-eslint/prefer-regexp-exec": "off",
"no-negated-condition": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"unicorn/prefer-set-has": "off"
}
}
]
}