Skip to content

Indent for Angular 18 control flow @if and @for #338

Open
@ssj3sunny

Description

@ssj3sunny

Hi there. I am developing in angular 18 and there are these control work flows like @if and @for and etc. I get an error for indent when I do
@if (a > b) {
{{a}}
}
and the auto fix is then
@if (a > b) {
{{a}}
}
The ESLint error is: "Expected indentation of 0 space but found 4 space. (@html-eslint/indent)"

Do you know how I can fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions