Skip to content

Forbid invalid modifiers #11713

Open
@fisker

Description

@fisker

Some examples:

interface Foo {
  abstract method();
}
type Foo = {static bar};
function foo(private parameter) {}
class Foo {
      declare get getter() {}
}

More cases can be found in https://github.com/prettier/prettier/blob/main/tests/format/misc/errors/typescript/modifiers/format.test.js

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions