Skip to content

Commit 87ff078

Browse files
committed
Update gulpfile and tslint.json to match upstream
1 parent 6f199dd commit 87ff078

File tree

2 files changed

+48
-45
lines changed

2 files changed

+48
-45
lines changed

gulpfile.js

+1-45
Original file line numberDiff line numberDiff line change
@@ -171,52 +171,8 @@ gulp.task("tslint", function () {
171171
// Configuration options adapted from TypeScript project:
172172
// https://github.com/Microsoft/TypeScript/blob/master/tslint.json
173173

174-
var config = {
175-
"rules": {
176-
"class-name": true,
177-
"comment-format": [true,
178-
"check-space"
179-
],
180-
"indent": [true,
181-
"spaces"
182-
],
183-
"one-line": [true,
184-
"check-open-brace"
185-
],
186-
"no-unused-variable": true,
187-
"no-use-before-declare": true,
188-
"quotemark": [true,
189-
"double"
190-
],
191-
"semicolon": true,
192-
"whitespace": [true,
193-
"check-branch",
194-
"check-operator",
195-
"check-separator",
196-
"check-type"
197-
],
198-
"typedef-whitespace": [
199-
true,
200-
{
201-
"call-signature": "nospace",
202-
"index-signature": "nospace",
203-
"parameter": "nospace",
204-
"property-declaration": "nospace",
205-
"variable-declaration": "nospace"
206-
},
207-
{
208-
"call-signature": "onespace",
209-
"index-signature": "onespace",
210-
"parameter": "onespace",
211-
"property-declaration": "onespace",
212-
"variable-declaration": "onespace"
213-
}
214-
],
215-
}
216-
}
217-
218174
return gulp.src([sourcePath + tsFiles, testPath + tsFiles])
219-
.pipe(tslint({ configuration: config, formatter: "verbose" }))
175+
.pipe(tslint({ configuration: "./tslint.json", formatter: "verbose" }))
220176
.pipe(tslint.report());
221177
});
222178

tslint.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"rules": {
3+
"class-name": true,
4+
"comment-format": [
5+
true,
6+
"check-space"
7+
],
8+
"indent": [
9+
true,
10+
"spaces"
11+
],
12+
"one-line": [
13+
true,
14+
"check-open-brace"
15+
],
16+
"quotemark": [
17+
true,
18+
"double"
19+
],
20+
"semicolon": true,
21+
"whitespace": [
22+
true,
23+
"check-branch",
24+
"check-operator",
25+
"check-separator",
26+
"check-type"
27+
],
28+
"strict-null-checks": false,
29+
"typedef-whitespace": [
30+
true,
31+
{
32+
"call-signature": "nospace",
33+
"index-signature": "nospace",
34+
"parameter": "nospace",
35+
"property-declaration": "nospace",
36+
"variable-declaration": "nospace"
37+
},
38+
{
39+
"call-signature": "onespace",
40+
"index-signature": "onespace",
41+
"parameter": "onespace",
42+
"property-declaration": "onespace",
43+
"variable-declaration": "onespace"
44+
}
45+
]
46+
}
47+
}

0 commit comments

Comments
 (0)