Sitelet https://github.com/prettier/prettier/issues/19570
Skip to content

Angular: Formatting @default never #19570

Description

@JeanMeche
    @switch (state.mode) {
      @case ('show') {
        {{ state.menu }};
      }
      @case ('hide') {}
      @default never(state);
    }

is being formatted as

    @switch (state.mode) {
      @case ('show') {
        {{ state.menu }};
      }
      @case ('hide') {}
      @default never;
    }

As you can see the argument of never is dropped.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:angularIssues affecting Angular template (not general JS/TS issues used for Angular)

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions