-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtslint.json
123 lines (123 loc) · 3.64 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
{
"defaultSeverity": "error",
"extends": [
"tslint:recommended",
"tslint-sonarts",
"tslint-microsoft-contrib/legacy"
],
"rules": {
"array-type": [true, "array"],
"chai-prefer-contains-to-index-of": false,
"chai-vague-errors": false,
"comment-format": [ true, "check-space" ],
"deprecation": {
"severity": "warn"
},
"function-name": [ true, {
"method-regex": "^[a-z][\\w\\d]+$",
"private-method-regex": "^[a-z][\\w\\d]+$",
"protected-method-regex": "^[a-z][\\w\\d]+$",
"static-method-regex": "^[a-z][\\w\\d]+$",
"function-regex": "^[a-z][\\w\\d]+$" }
],
"import-name": false,
"indent": [ true, "spaces", 4 ],
"insecure-random": false,
"interface-over-type-literal": true,
"interface-name": false,
"jsdoc-format": [ true, "check-multiline-start" ],
"linebreak-style": [ true, "LF" ],
"match-default-export-name": false,
"max-classes-per-file": false,
"max-func-body-length": false,
"max-line-length": [ true, {
"limit": 100,
"ignore-pattern": "^import|^export|/.*/[;|,]$|'.*'[;|,]$|`.*`[;|,]$|^\\s*((//|\\*)\\s+)?(.{1,3} )?(https?)://[^ ]+$"
}],
"member-ordering": [ true, {
"order": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"public-static-method",
"protected-static-method",
"private-static-method",
"public-instance-method",
"protected-instance-method",
"private-instance-method"
]}
],
"mocha-no-side-effect-code": false,
"mocha-unneeded-done": false,
"newline-before-return": false,
"newline-per-chained-call": false,
"no-angle-bracket-type-assertion": false,
"no-backbone-get-set-outside-model": false,
"no-implicit-dependencies": [ true, "dev" ],
"no-big-function": false,
"no-console": {
"severity": "warning"
},
"no-http-string": false,
"no-inferrable-types": false,
"no-namespace": false,
"no-non-null-assertion": true,
"no-null-keyword": false,
"no-relative-imports": false,
"no-suspicious-comment": false,
"no-unnecessary-qualifier": false,
"no-use-before-declare": false,
"object-literal-sort-keys": false,
"object-literal-shorthand": {
"severity": "warning"
},
"only-arrow-functions": [true, "allow-declarations", "allow-named-functions"],
"promise-function-async": false,
"quotemark": [ true, "single" ],
"radix": true,
"semicolon": [ true, "always" ],
"space-before-function-paren": [ true, "always" ],
"typedef": [
true,
"call-signature",
"property-declaration",
"variable-declaration",
"member-variable-declaration",
"object-destructuring",
"array-destructuring"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
},
{
"call-signature": "onespace",
"index-signature": "onespace",
"parameter": "onespace",
"property-declaration": "onespace",
"variable-declaration": "onespace"
}
],
"trailing-comma": [ true, {
"multiline": "never",
"singleline": "never"
}],
"triple-equals": [true, "allow-null-check"],
"unified-signatures": false,
"variable-name": [
true,
"ban-keywords",
"check-format",
"allow-pascal-case",
"allow-leading-underscore"
]
}
}