💻
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
💻
What problem are you trying to solve?
I was going to clean up the decorator print part in Prettier, because we check
decoratorson every node for some historical reason.Currently, we have
decoratorsin the following node typesI 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