Skip to content

Commit 302c1c0

Browse files
committed
(maint) Modify tslint configuration for test files
Previously tslint was raising errors in Travis CI saying that the excluded test fixtures directory was not included in the project. This was by design however it appears to be a known bug palantir/tslint#3793. This commit removes the exclude for test files from linting and adds a tslint directive in the default index.ts file. A tslint directive is used instead of solving the issue because this is the default testing file for VS Code extesions and shouldn't really be modified unless absolutely necessary. In this instance it was safer for a tslint directive.
1 parent 51b9e4e commit 302c1c0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"vscode.powershell"
5353
],
5454
"scripts": {
55-
"compile": "tsc -v && tsc -p ./ && tslint -p ./ -e test/*",
55+
"compile": "tsc -v && tsc -p ./ && tslint -p ./",
5656
"compile-watch": "tsc -watch -p ./",
5757
"postinstall": "node ./node_modules/vscode/bin/install",
5858
"test": "node ./node_modules/vscode/bin/test"

test/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// tslint:disable no-var-requires
12
let testRunner = require("vscode/lib/testrunner");
23

34
// See https://github.com/mochajs/mocha/wiki/Using-mocha-programmatically#set-options for options

0 commit comments

Comments
 (0)