5

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.

user3255061
  • 1,757
  • 1
  • 30
  • 50

1 Answers1

8
"indent": [
  true,
  "tabs",
  4
],

in the tslint.json did the trick. See this reference in the docs.

user3255061
  • 1,757
  • 1
  • 30
  • 50