How to configure TSLint with Ionic 3?

Hi guys,
I’d like to adopt a standard and clean methodology to write TypeScript code in my Ionic apps.
After reading this on the TSLint site:“TSLint is an extensible static analysis tool that checks TypeScript code for readability, maintainability, and functionality errors.” I decided to use it to check my Ionic3 code.

Which are the steps to configure an app to use the right rules and the right commands to check the code?

I’ve seen that a new app already has a script;
"lint": "ionic-app-scripts lint"

but which rules are checked?
Should not I first install the package “tslint-ionic-rules” ?

Thank you very much

cld

Hello,
if you use visual code then search for tslint extensions and install it.Many other editors have similar. Tslint has nothing todo with ionic, it helps writing more consistent typescript code.

Best regards, anna-liebt

Thank you Anna,
I’ve used this tutorial, because I’m using WebStorm.

I’ve installed tslint-ionic-rules and I’ve configured WebStorm so that uses the file of custom rules added by tslint-ionic-rules.

cld