Skip to content

[docs/Rationale] outdated: decorator before vs after export #17573

@icecream17

Description

@icecream17

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.type:docsIssues about adding or improving documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions