-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing readonly
and declare
in ClassMethod
and TSMethodSignature
#9760
Comments
Same output comes from both Background is in PR #9748 & typescript-eslint/typescript-eslint#2908. I gather that the testing with AST_COMPARE=1 does not show an issue because the attributes are not present in the AST coming either from |
|
readonly
and declare
in ClassMethodreadonly
and declare
in ClassMethod
and TSMethodSignature
Invalid Prettier 2.2.1 --parser typescript Input: class Foo {
declare get foo()
declare set foo(v)
} Output: class Foo {
get foo();
set foo(v);
} |
Prettier 2.2.1
Playground link
Input:
Output:
Expected behavior:
Update
Expected behavior:
Throw SyntaxError.
The text was updated successfully, but these errors were encountered: