I have changed my package.json to include this: "scripts": { "lint": "ionic-app-scripts lint" },
I then run npm run lint which works.
I would then like to use the --fix option for tslint to automatically fix errors. How would I do this? If I use npm run lint --fix, it just runs the script as usual.
Running it through script you’ll see errors that aren’t captured by the editors because they require type checking, such as no-floating-promises. Here are sample rules to put in tslint.json: