Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Upgrade tslint to v5 #649

Closed
rolandjitsu opened this issue Jan 13, 2017 · 12 comments
Closed

Upgrade tslint to v5 #649

rolandjitsu opened this issue Jan 13, 2017 · 12 comments

Comments

@rolandjitsu
Copy link
Contributor

Note: for support questions, please use one of these channels:

https://forum.ionicframework.com/
http://ionicworldwide.herokuapp.com/

Short description of the problem:

It would be nice to have tslint upgraded to v4. Because right now, it does not complain if I use that version, but ionic-app-scripts lint does nothing, just exits.

What behavior are you expecting?

If I use v4 it should still work and log errors. Additionally it should exit with code 1 if there was an error.

Steps to reproduce:

  1. Install the conf app;
  2. Add "tslint": "^4.3.1" to package.json dev deps;
  3. Run ionic-app-scripts lint.

Which @ionic/app-scripts version are you using?
1.0.0

@wbhob
Copy link

wbhob commented Jan 13, 2017

The conference app is already linted, so tslint shouldn't have any errors.

@rolandjitsu
Copy link
Contributor Author

Yes, but it should throw errors if I have any in my app. And I intentionally made some mistakes to trigger some errors.

@petradonka
Copy link

This would be nice as there are some rules which have apparently changed (e.g. arrow-parens) and so when linting is run manually, everything passes, but when ionic-app-scripts runs linting, there are issues (which should not be there).

@huerlisi
Copy link
Contributor

huerlisi commented Feb 7, 2017

You can now trigger a non-zero exit code when linting in versino 1.0.1: b3bb906

@danbucholtz
Copy link
Contributor

Update to TSLint 4.x. Do this when Ionic/Angular support TypeScript 2.1.

Thanks,
Dan

@rolandjitsu
Copy link
Contributor Author

@danbucholtz does this mean that we have to wait until Ionic 2 upgrades to Angular 4+? Because they do not plan to provide support for TS 2.1+ in Angular 2.x as far as I can tell.

@wbhob
Copy link

wbhob commented Feb 10, 2017 via email

@danbucholtz
Copy link
Contributor

@rolandjitsu,

I looked into it and we'll probably just wait for TS Lint 4. I tried doing it now but they have some Type Definitions in there that require TS 2.1, which we can't use yet until Angular supports it. So yes, most likely when V4 ships.

Thanks,
Dan

@rolandjitsu
Copy link
Contributor Author

@danbucholtz now that Ionic is at Angular v4, are there any plans to upgrade? I guess it hasn't been done as I experienced some strange behaviour as I reported in #886.

@danbucholtz
Copy link
Contributor

It is not a very high priority item. We'd take a well-tested PR.

Thanks,
Dan

@JustinPierce
Copy link

May as well go for TSLint 5, while you're in there. ;)

@rolandjitsu rolandjitsu changed the title Upgrade tslint to v4 Upgrade tslint to v5 May 2, 2017
@jgw96
Copy link
Contributor

jgw96 commented May 15, 2017

Closing this issue as the above PR got merged. Thanks @rolandjitsu

@jgw96 jgw96 closed this as completed May 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants