-
Notifications
You must be signed in to change notification settings - Fork 34
/
tslint.json
146 lines (145 loc) · 4.99 KB
/
tslint.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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"extends": ["tslint:all", "tslint-config-prettier"],
"rulesDirectory": [
"./common/temp/node_modules/tslint-microsoft-contrib",
"./common/temp/node_modules/tslint-immutable/rules",
"./common/temp/node_modules/tslint-consistent-codestyle/rules",
"./common/temp/node_modules/tslint-sonarts/lib/rules/",
"./common/temp/node_modules/tslint-clean-code/dist/build",
"./common/temp/node_modules/rxjs-tslint-rules/dist/rules"
],
"defaultSeverity": "error",
"rules": {
"cyclomatic-complexity": false,
"no-unused-variable": false,
"no-inferred-empty-object-type": false,
"no-duplicate-variable": false,
"no-unbound-method": false,
"completed-docs": false,
"interface-name": false,
"max-classes-per-file": false,
"object-literal-sort-keys": false,
"no-namespace": false,
"typedef": false,
"no-empty-interface": false,
"no-magic-numbers": false,
"prefer-method-signature": false,
"restrict-plus-operands": false,
"no-unsafe-any": false,
"max-file-line-count": false,
"no-expression-statement": false,
"no-parameter-properties": false,
"prefer-function-over-method": false,
"file-name-casing": [false, "camel-case"],
"static-this": false,
"strict-comparisons": false,
"no-use-before-declare": null,
"no-async-without-await": false,
"no-null-undefined-union": false,
"array-type": [true, "array-simple"],
"trailing-comma": [
true,
{
"multiline": {
"objects": "always",
"arrays": "always",
"functions": "always",
"typeLiterals": "always"
},
"esSpecCompliant": true
}
],
"ordered-imports": true,
"quotemark": [false, "single", "avoid-escape"],
"triple-equals": [true, "allow-undefined-check"],
"member-ordering": [
true,
{
"order": "statics-first"
}
],
"no-inferrable-types": true,
"only-arrow-functions": [true, "allow-declarations"],
"no-submodule-imports": [true, "rxjs", "@reactivex/ix-es2015-cjs", "@reactivex", "uuid", "react-icons"],
"strict-boolean-expressions": [
true,
"allow-null-union",
"allow-undefined-union",
"allow-string",
"allow-number",
"allow-mix"
],
"no-implicit-dependencies": [true, "dev"],
"comment-format": [true, "check-space"],
"no-void-expression": [true, "ignore-arrow-function-shorthand"],
"no-this-assignment": [
true,
{
"allow-destructuring": true
}
],
"one-variable-per-declaration": [true, "ignore-for-loop"],
"variable-name": [true, "ban-keywords", "check-format", "allow-leading-underscore", "allow-pascal-case"],
"export-name": true,
"no-control-regex": true,
"no-empty-line-after-opening-brace": true,
"increment-decrement": true,
"no-invalid-regexp": true,
"no-regex-spaces": true,
"no-single-line-block-comment": false,
"no-suspicious-comment": true,
"no-unnecessary-field-initialization": true,
"possible-timing-attack": true,
"prefer-array-literal": [true, { "allow-type-parameters": true }],
"promise-must-complete": true,
"use-named-parameter": true,
"no-unused-expression": [true, "allow-fast-null-checks"],
"readonly-keyword": [true, "ignore-local", { "ignore-prefix": ["mutable", "this.mutable", "draft"] }],
"readonly-array": [true, "ignore-local", { "ignore-prefix": ["mutable", "this.mutable", "draft"] }],
"no-let": [true, "ignore-local"],
"no-array-mutation": [
true,
{ "ignore-prefix": ["mutable", "this.mutable", "ctx.mutable", "draft"] },
"ignore-new-array"
],
"no-object-mutation": [
true,
{ "ignore-prefix": ["mutable", "this.mutable", "app.proxy", "app.silent", "ctx.", "draft", "$el"] }
],
"no-method-signature": true,
"no-loop-statement": true,
"no-accessor-recursion": true,
"no-collapsible-if": true,
"no-unnecessary-else": true,
"no-unnecessary-type-annotation": false,
"no-unnecessary-type-assertion": false,
"no-unused": [true, "unused-function-expression-name", "unused-class-expression-name", "unused-catch-binding"],
"no-var-before-return": true,
"prefer-while": true,
"no-ignored-initial-value": true,
"no-ignored-return": true,
"no-in-misuse": true,
"no-misleading-array-reverse": true,
"no-unthrown-error": true,
"no-use-of-empty-return-value": true,
"no-useless-increment": true,
"no-useless-intersection": true,
"no-array-delete": true,
"no-dead-store": false,
"no-gratuitous-expressions": true,
"no-inconsistent-return": true,
"no-redundant-boolean": true,
"no-redundant-parentheses": true,
"no-useless-cast": true,
"prefer-immediate-return": true,
"prefer-promise-shorthand": true,
"use-primitive-type": true,
"no-map-without-usage": true,
"rxjs-finnish": true,
"rxjs-no-ignored-error": false,
"ban-ts-ignore": false,
"no-default-import": false,
"strict-string-expressions": false,
"invalid-void": false
}
}