readonly
and declare
invalid property for MethodDefinition
.
#2908
Labels
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
wontfix
This will not be worked on
Repro
Expected Result
Expect that
MethodDefinition
nodes havereadonly
anddeclare
property.AST
Actual Result
AST
Additional Info
prettier/prettier#9760
I know the above code is invalid as TypeScript program (TS Playground). But I think code formatters should correctly treat those cases. What do you think about?
If the request is accepted, I can work on this.
Versions
@typescript-eslint/typescript-estree
master
TypeScript
4.1.2
node
v14.8.0
The text was updated successfully, but these errors were encountered: