This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
forked from Coinversable/validana-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tslint.json
90 lines (90 loc) · 2.3 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
{
"extends": [
"tslint:recommended"
],
"rules": {
//Common standard to not prefix interfaces
"interface-name": [
true,
"never-prefix"
],
//Too much effort for too little gain
"ordered-imports": false,
"object-literal-sort-keys": false,
//Only required for a few outdated unix functions
"eofline": false,
//Forcing leading space or not in comments, doesn't really matter
"comment-format": false,
//A high number, use your own judgement, but there are limits
"max-line-length": [
true,
180
],
//Not too strict with public vs private and static vs non-static, but use some ordering
"member-ordering": [
true,
{
"order": [
{
"name": "field",
"kinds": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-instance-field",
"protected-instance-field",
"private-instance-field"
]
},
"constructor",
{
"name": "method",
"kinds": [
"public-static-method",
"protected-static-method",
"private-static-method",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]
}
]
}
],
//Do not add commas if there is only 1 element or if it is the last element.
"trailing-comma": {
"options": {
"singleline": "never",
"multiline": "never"
}
},
//Consistently use undefined.
"no-null-keyword": true,
//With related classes it can be better to have them in the same file.
"max-classes-per-file": false,
//A block is sometimes required (for example error catching), but not always required to do something.
"no-empty": false,
//Sometimes bitwise operators are needed for performance.
"no-bitwise": false,
//Ensure all methods have a return type so you can quickly see it.
"typedef": [
true,
"call-signature"
],
//Using tabs allows users to change the intend size without changing the code.
"indent": [
true,
"tabs"
],
//It seems to expect weird parameter/argument alignment which gives problems when having many parameters
"align": [
true,
"statements",
"members"
],
//Avoid common mistakes
"strict-boolean-expressions": true,
//Even if the parameters can be unified the documenation may differ.
"unified-signatures": false
}
}