-
Notifications
You must be signed in to change notification settings - Fork 114
/
.eslintrc.base.json
70 lines (70 loc) · 1.94 KB
/
.eslintrc.base.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
{
"env": {
"es2021": true,
"node": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/require-array-sort-compare": "error",
"@typescript-eslint/strict-boolean-expressions": ["error"],
"@typescript-eslint/no-floating-promises": [
"error",
{ "ignoreVoid": false }
],
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-misused-promises": "error",
"constructor-super": "error",
"eqeqeq": "error",
"@typescript-eslint/switch-exhaustiveness-check": "error",
"@typescript-eslint/no-inferrable-types": "off",
"no-buffer-constructor": "error",
"no-caller": "error",
"no-case-declarations": "error",
"no-debugger": "error",
"no-duplicate-case": "error",
"no-eval": "error",
"no-async-promise-executor": "error",
"no-extra-semi": "error",
"sonarjs/no-ignored-return": "error",
"no-new-wrappers": "error",
"no-redeclare": "off",
"no-sparse-arrays": "error",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-empty-function": "off",
"no-throw-literal": "error",
"no-constant-condition": "off",
"no-unsafe-finally": "error",
"no-unused-labels": "error",
"no-restricted-globals": [
"warn",
"name",
"length",
"event",
"closed",
"external",
"status",
"origin",
"orientation",
"context"
],
"no-var": "off",
"semi": "off",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "class",
"format": ["PascalCase"]
}
]
},
"overrides": [],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"ignorePatterns": ["node_modules/"],
"plugins": ["@typescript-eslint", "sonarjs"]
}