Skip to content

Cleanup decorators from types #17525

@fisker

Description

@fisker

💻

  • Would you like to work on this feature?

What problem are you trying to solve?

I was going to clean up the decorator print part in Prettier, because we check decorators on every node for some historical reason.

Currently, we have decorators in the following node types

  'AssignmentPattern',
  'ClassAccessorProperty',
  'ClassDeclaration',
  'ClassExpression',
  'ClassMethod',
  'ClassPrivateMethod',
  'ClassPrivateProperty',
  'ClassProperty',
  'Identifier',
  'ObjectMethod',
  'ObjectPattern',
  'ObjectProperty',
  'TSDeclareMethod'

I don't think they are correct, but I don't know the correct answer either.

Describe the solution you'd like

N/A

Describe alternatives you've considered

N/A

Documentation, Adoption, Migration Strategy

Same request in typescript-eslint typescript-eslint/typescript-eslint#11630

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions