After updating npm
and the angular cli ng
to their latest versions, I created a new angular project by using the command: ng new app-name-here --routing
My first task was to change the indentation in the project from 2 spaces to 4 spaces. I navigated to the tsconfig.json
file and made the following modification:
...
"indent": {
"options": [
"spaces"
]
}
...
I referenced this guide for the correct format and updated it to:
...
"indent": {
"options": [
"spaces", 4
]
}
...
After running ng lint --fix
again, all files passed the linting process successfully.
However, I noticed that the schema specified in the resource used an object format instead of an array. I tried changing it accordingly without success.
Is there a way to configure my angular project to use 4 spaces for indentation instead of 2?
Note: Changing from "spaces" to "tabs" resulted in linter warnings, but I couldn't figure out how to specify the number of spaces.