问题
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/
回答1:
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.
回答2:
go into your tslint.json
press ctrl+F, replace true
with false
来源:https://stackoverflow.com/questions/40788655/how-to-disable-unused-import-warnings-on-ionic2-angular2