dprint-plugin-typescript
dprint-plugin-typescript copied to clipboard
Parsing error when using export keyword with decorator
Describe the bug The valid TypeScript code below causes a parsing error.
dprint-plugin-typescript version: 0.88.3
Input Code
export class MyClass {
@MyDecorator() export = "myStr";
}
Expected Output
export class MyClass {
@MyDecorator() export = "myStr";
}
Actual Output
`export` is not allowed here at file.ts:2:18
@MyDecorator() export = "myStr";
~~~~~~
Playground Link Playground link
Looks like https://github.com/swc-project/swc/issues/5276