-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Call signatures in interfaces get broken with no-semi #14040
Copy link
Copy link
Labels
area:no-semilang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Prettier 2.8.1
Playground link
--parser typescript
--no-semiInput:
interface Foo {
foo,<T>(a: T): T;
}Output:
interface Foo {
foo
<T>(a: T): T
}Second Output:
interface Foo {
foo<T>(a: T): T
}Prettier 2.8.1
Playground link
--parser typescript
--no-semiInput:
interface Foo {
a,
():x
}Output:
interface Foo {
a
(): x
}Second Output:
interface Foo {
a(): x
}Prettier 2.8.1
Playground link
--parser typescript
--no-semiInput:
interface Foo {
get,
bar():string
}Output:
interface Foo {
get
bar(): string
}Second Output:
interface Foo {
get bar(): string
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:no-semilang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)Issues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.