2

I know there is an option to disable those 'Unused Import' warnings give by tslint when running ionic serve or ionic build. But I have no idea where to put it. Does anyone know? Thanks

[1] https://palantir.github.io/tslint/rules/no-unused-variable/

SoS
  • 774
  • 1
  • 7
  • 19

2 Answers2

8

Ok, that was quick.. Like often. I'm looking for days for a solution, but immediately after I post my question here, I find the solution on my own.

So, for all having the same problems during developing, you can set no-unused-variable to false in the file tslint.json.

But don't forget to enable it again when you go to production.

SoS
  • 774
  • 1
  • 7
  • 19
7

go into your tslint.json press ctrl+F, replace true with false

Ivar Reukers
  • 7,560
  • 9
  • 56
  • 99
  • Thx, found it by myself :) – SoS Nov 24 '16 at 14:24
  • @SoS ah nice, indeed very quick hahah, I myself disabled all tslint options, haven't had a single error which actually mattered because of it. Matter of preference I guess – Ivar Reukers Nov 24 '16 at 14:27