Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Use tsconfig.json to determine which typescript files to lint #2524

Merged
merged 1 commit into from
Jun 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install",
"test": "node ./node_modules/vscode/bin/test",
"lint": "node ./node_modules/tslint/bin/tslint ./src/*.ts ./src/debugAdapter/*.ts ./test/*.ts",
"fix-lint": "node ./node_modules/tslint/bin/tslint --fix ./src/*.ts ./src/debugAdapter/*.ts ./test/*.ts",
"lint": "node ./node_modules/tslint/bin/tslint --project tsconfig.json",
"fix-lint": "node ./node_modules/tslint/bin/tslint --fix --project tsconfig.json",
"unit-test": "node ./node_modules/mocha/bin/_mocha -u tdd --timeout 5000 --colors ./out/test/unit"
},
"extensionDependencies": [],
Expand Down
12 changes: 6 additions & 6 deletions test/unit/NNDict.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { Node, NearestNeighborDict } from '../../src/avlTree';

suite('NearestNeighborDict Tests', () => {
test('basic insert/get: random', () => {
let dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
let entries = [5, 2, 9, 23, 3, 0, 1, -4, -2];
const dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
const entries = [5, 2, 9, 23, 3, 0, 1, -4, -2];
entries.forEach(x => dict.insert(x));
assert(dict.height() < 4);

Expand All @@ -23,8 +23,8 @@ suite('NearestNeighborDict Tests', () => {
});

test('basic insert/get: increasing', () => {
let dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
let entries = [-10, -5, -4, -1, 0, 1, 5, 10, 23];
const dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
const entries = [-10, -5, -4, -1, 0, 1, 5, 10, 23];
entries.forEach(x => dict.insert(x));
assert(dict.height() < 4);

Expand All @@ -38,8 +38,8 @@ suite('NearestNeighborDict Tests', () => {
});

test('basic insert/get: decreasing', () => {
let dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
let entries = [-10, -5, -4, -1, 0, 1, 5, 10, 23].reverse();
const dict = new NearestNeighborDict(new Node(0, 0), NearestNeighborDict.NUMERIC_DISTANCE_FUNCTION);
const entries = [-10, -5, -4, -1, 0, 1, 5, 10, 23].reverse();
entries.forEach(x => dict.insert(x));
assert(dict.height() < 4);

Expand Down