We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It looks like Prettier does not format typescript code inside on* handlers
For example, prettier will successfully format the code below
<button onclick={() => { let i = 0 }}>
But it does not format the code below
<button onclick={() => { let i: number }}>
Workaround: Move the code to a function in the <script> tag, then assign that function to the on* handler.
<script>
The text was updated successfully, but these errors were encountered:
6a1e4d5
@const
No branches or pull requests
It looks like Prettier does not format typescript code inside on* handlers
For example, prettier will successfully format the code below
But it does not format the code below
Workaround: Move the code to a function in the
<script>
tag, then assign that function to the on* handler.The text was updated successfully, but these errors were encountered: