Is it possible to control which rules are auto-fixed when running tslint --fix
? Ideally, I only want to autofix the whitespace and quotation rules, and I'll evaluate the rest manually. I can't seem to find anything in the documentation telling me which rules auto fix, or how to control which rules to apply though, and I'm a bit apprehensive about blindly fixing everything.
I'm currently using the tslint file that's autogenerated by Angular CLI.
If you want to disable, just open tslint. json file and replace all true parameter with false. It would not check for any errors after that! That would disable ts lint fully.
You could always run tslint --fix
using a separate tslint.json
file that contains only the rules you want to fix. I believe the rules that auto-fix are the ones marked "Has Fixer" in the list.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With