Running ng lint gives me a lot of "space indentation expected" errors, reason being me using tabs instead of spaces. I'd be ok using 4 spaces instead of the tabs, but I can't work with 2-space-indentations.
I understand that the angular cli team currently doesn't have any plans to change the 2 space indentations, but is there any way of configuring the linter that it doesn't raise warnings about it?
Excluding all .ts files from linting is not a feasable option for me, putting "tslint:disable-next-line:indent" in all of the files like suggested here is also quite annoying.
"indent": [
true,
"tabs",
4
],
in the tslint.json did the trick. See this reference in the docs.
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