Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ugly formatting for interface extends with long type parameters #8941

Closed
sosukesuzuki opened this issue Aug 9, 2020 · 0 comments · Fixed by #8981
Closed

Ugly formatting for interface extends with long type parameters #8941

sosukesuzuki opened this issue Aug 9, 2020 · 0 comments · Fixed by #8981
Assignees
Labels
lang:typescript Issues affecting TypeScript-specific constructs (not general JS issues) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:bug Issues identifying ugly output, or a defect in the program
Milestone

Comments

@sosukesuzuki
Copy link
Member

from: https://github.com/sosukesuzuki/typescript-eslint/pull/1/files#diff-9d24728f5005799a507ba4b6eba78863R60-R64

Prettier pr-8821(Current master)
Playground link

--parser typescript

Input:

interface Foo<
  loooooooooooooooooooooooooooooooooong,
  loooooooooooooooooooooooooooooooooong
> extends SomeType {
  foo: string;
}

Output:

interface Foo<
    loooooooooooooooooooooooooooooooooong,
    loooooooooooooooooooooooooooooooooong
  >
  extends SomeType {
  foo: string;
}

Expected behavior(2.0.5 output):

interface Foo<
  loooooooooooooooooooooooooooooooooong,
  loooooooooooooooooooooooooooooooooong
> extends SomeType {
  foo: string;
}
@sosukesuzuki sosukesuzuki added type:bug Issues identifying ugly output, or a defect in the program lang:typescript Issues affecting TypeScript-specific constructs (not general JS issues) labels Aug 9, 2020
@sosukesuzuki sosukesuzuki self-assigned this Aug 9, 2020
@sosukesuzuki sosukesuzuki added this to the 2.1 milestone Aug 15, 2020
@github-actions github-actions bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Nov 18, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang:typescript Issues affecting TypeScript-specific constructs (not general JS issues) locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:bug Issues identifying ugly output, or a defect in the program
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant