-
Notifications
You must be signed in to change notification settings - Fork 26
/
.eslintrc.json
56 lines (56 loc) · 1.37 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
{
"env": {
"browser": true,
"es2020": true
},
"extends": [
"google"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"project": "./packages/bio/tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"rxjs"
],
"rules": {
"indent": ["error", 2, {"SwitchCase": 0}],
"max-len": ["error", 120],
"max-params": ["warn", 7],
"max-lines-per-function": ["warn", 100],
"max-lines": ["warn", 300],
"no-throw-literal": "error",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "varsIgnorePattern": "^(_|ui$|grok$|DG$)", "argsIgnorePattern": "^_"}],
"require-jsdoc": "off",
"valid-jsdoc": "off",
"spaced-comment": "off",
"linebreak-style": "off",
"curly": [
"error",
"multi-or-nest"
],
"brace-style": [
"error",
"1tbs",
{
"allowSingleLine": true
}
],
"block-spacing": [2, "always"],
"comma-dangle": "off",
"comma-spacing": "error",
"comma-style": "error",
"guard-for-in": "off",
"space-infix-ops": "error",
"rxjs/no-async-subscribe": "error",
"rxjs/no-ignored-observable": "error",
"rxjs/no-ignored-subscription": "error",
"rxjs/no-nested-subscribe": "error",
"rxjs/no-unbound-methods": "error",
"rxjs/throw-error": "error"
}
}