Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Detect 4.0.0 for -dev versions of tslint #141

Merged
merged 1 commit into from
Nov 29, 2016
Merged
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
2 changes: 1 addition & 1 deletion tslint-server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ function isTsLintVersion4(linter) {
version = linter.VERSION;
} catch (e) {
}
return semver.gte(version, '4.0.0');
return semver.satisfies(version, ">= 4.0.0 || >= 4.0.0-dev");
}

function doValidate(conn: server.IConnection, document: server.TextDocument): server.Diagnostic[] {
Expand Down