-
Notifications
You must be signed in to change notification settings - Fork 198
tslint 4.0 support #313
Comments
=>
|
Should tslint be a peer or actual dependency instead of a dev dependency? I'm seeing runtime errors after updating tslint locally. |
@bookman25 yes, we should be declaring TypeScript and TSLint versions as a peer dependency so that these types of runtime errors are caught by npm instead. That is a good idea. @Delagen thanks for submitting this bug. I am going to try and fix this in a way that is still backwards compatible with older versions of tslint. |
I think we're going to have to update all the rules and break backwards compatibility. |
Is there any reason not to make them explicit hard dependencies since they are required at runtime? npm stopped enforcing peer dependencies with version 3. It just prints a warning now. So if a consuming application upgrades their tslint version it could still break since this library will try to use it. This wouldn't happen with a normal dependency. |
@jwbay @bookman25 @Delagen @ChrisMBarr @JoshuaKGoldberg @bondz We are very close to releasing tslint-microsoft-contrib 4.0.0 which will support tslint 4.0.0 A few notes:
It would be a big help if anyone here can test our latest nightly. Just install with:
or point your npm dependency to:
Please report any issues you find! Thanks! (also, the WIP of 4.0.0 support is on the branch called "3_0_0". If you want to take a look at an issue be sure to fork off that branch. |
I just tested it out. We're only using a few rules but it's all working correctly now with 4.0. Thanks! |
Regarding using the #releases branch, can you please explain why this preferable to having published By the way, is there a planned release date already for the 3.x branch? |
@schmuli I have the #releases branch set up because it is easier for me to just make a push to a branch than publish a beta to npm. I can look into it though. There is no official release date of 3.x because we're blocked on grunt-tslint not supporting 4.0. We can see what we can do though. |
Please publish NPM version. With beta or other tag to not override latest |
For the last couple of days, I have been using the latest changes on the release branch in a medium-large project that uses a fair amount of rules. So far, I haven't had any issues. I agree with the other posts that it would be great to see a beta release on NPM. |
Code merged to master. Starting the release process now. |
The text was updated successfully, but these errors were encountered: