-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
[docs/Rationale] outdated: decorator before vs after export #17573
Copy link
Copy link
Closed
Labels
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.type:docsIssues about adding or improving documentationIssues about adding or improving documentation
Description
https://prettier.io/docs/rationale#decorators
https://github.com/prettier/prettier/blob/main/docs/rationale.md#decorators
Relevant sentence:
One final thing: TC39 has not yet decided if decorators come before or after export. In the meantime, Prettier supports both:
This is outdated, the issue is closed and it seems they decided on either/or being valid
Since I don't use decorators, I'm not sure if by now, developers expect both to be valid, or if this behaviour is relatively unknown.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
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.type:docsIssues about adding or improving documentationIssues about adding or improving documentation