forked from dex4er/js-sliding-window-rate-limiter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
43 lines (43 loc) · 1.46 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
{
"extends": [
"tslint:recommended",
"tslint-config-standard"
],
"rules": {
"arrow-parens": true, // aligning style with standard
"await-promise": [true, "Bluebird", "Promise", "PromiseLike"], // amqplib uses Bluebird
"interface-name": [true, "never-prefix"], // we don't like hungarian notation
"max-line-length": false, // looooong lines are not a problem with good text editor
"member-access": [true, "no-public"], // public is implicit
"no-console": [true, "log"], // `console.log` is for temporary debugging only
"no-namespace": false, // still better than literal class
"no-shadowed-variable": [ // there is nothing wrong about shadowing function name
true,
{
"function": false
}
],
"no-unnecessary-type-assertion": [true, "ms", "s"], // ie. `as s` is a hint about unit
"no-unused-variable": false, // no-unused-variable is deprecated. Since TypeScript 2.9.
"object-curly-spacing": [ // aligning style with standard
true,
"always"
],
"object-literal-sort-keys": false, // too problematic
"one-variable-per-declaration": [true, "ignore-for-loop"], // common pattern for loops
"ter-indent": [ // aligning style with standard
true,
2,
{
"CallExpression": "first",
"MemberExpression": 1
}
],
"typedef": [ // types are mandatory
true,
"call-signature",
"parameter",
"property-declaration"
]
}
}