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

Always use tslint@latest to list; have expect rule handle checking with an older TypeScript version #40

Merged
1 commit merged into from
May 30, 2017

Conversation

ghost
Copy link

@ghost ghost commented May 27, 2017

Fixes #39

I was unable to get this working in a unit test because tslint's tests use .ts.lint files that aren't picked up in TypeScript by default. Ideally we could just copy the old program but microsoft/TypeScript#15344 was causing bugs when I tried that. Instead I have a createProgram function based on tslint's the re-parses the config. I've tested that this works on DefinitelyTyped.

@ghost ghost requested a review from mhegazy May 27, 2017 17:57
@msftclas
Copy link

@andy-ms,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@@ -1,8 +1,5 @@
{
"rulesDirectory": ["../../bin/rules"],
"linterOptions": {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tslint doesn't need this any more, now it needs a tsconfig.json to be present. palantir/tslint#2769

@ghost ghost merged commit 038677a into master May 30, 2017
@ghost ghost deleted the ts_latest branch May 30, 2017 17:31
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants