This repository has been archived by the owner on Jun 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtslint.json
88 lines (88 loc) · 2.59 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
{
"extends": [
"tslint-microsoft-contrib/recommended_ruleset.js"
],
"rulesDirectory": [
"node_modules/tslint-microsoft-contrib/"
],
"rules": {
"new-parens": true,
"no-arg": true,
"no-bitwise": true,
"no-conditional-assignment": true,
"no-consecutive-blank-lines": false,
"no-console": [
"debug",
"info",
"log",
"time",
"timeEnd",
"trace"
],
"semicolon": [
true,
"always"
],
"quotemark": [
true,
"single",
"avoid-escape"
],
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-leading-underscore"
],
"arrow-parens": false,
"max-line-length": [
false
],
"object-literal-sort-keys": [
false
],
"interface-name": [
true,
"never-prefix"
],
"max-classes-per-file": [
false
],
"no-unused-variable": [
true
],
"no-unused-expression": [
true
],
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": "always"
}
],
"export-name": false, // Disabled as exports are PascalCased and file-names-are-whatever-this-case-is-called
"no-reserved-keywords": false, // We have model fields names type, public etc..
"no-require-imports": false, // Needed to import 'debug' module
"prefer-type-cast": false, // Prefer new as syntax over angle bracket
"no-angle-bracket-type-assertion": true,
"no-suspicious-comment": false, // TODO: Enable this ;-)
"max-func-body-length": false,
"no-unsafe-any": false, // Disabled this until I can figure out what it means
"completed-docs": [
false
], // TODO!
"no-void-expression": [
"ignore-arrow-function-shorthand"
],
"no-relative-imports": false, // Disabled for tests
"chai-vague-errors": false,
"typedef": [true, "call-signature", "arrow-call-signature", "parameter", "arrow-parameter", "property-declaration", "member-variable-declaration"],
"function-name": false,
"cyclomatic-complexity": [
50
],
"missing-jsdoc": false,
"newline-before-return": false // Don't like this... <deal-with-it type='cat'/>
}
}