I started a typescript/react ionic 4 project. Everything is working, but I can’t figure out how to silence the “IonWhatever is defined but never used @typescript-eslint/no-unused-vars” warning, which is really annoying. I’ve never really configured linters in typescript before, could someone tell me exactly what needs to be in tslint.json and tsconfig.json?
"no-unused-variable": false in tslint.json`?
Where should I put that? I tried package.json -> elintConfig -> rules, tslint.json->rules to no avail.
I would have thought
tslint.json would do it.
Did not work for me, I am using ionic with react.
I have the same issue, I cannot get any estlint rule overrides to work in my Ionic React app.
I have tried both
.eslintrc files with no luck.
Anyone have this working?
This fix worked for me: