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
bracketSameLine
With this prettier configuration:
.prettierrc:
{ "bracketSameLine": true, "singleAttributePerLine": true, "plugins": ["prettier-plugin-astro"] }
In .astro files, I spect self-closing tags to be closed in the same line of its lasts attribute, but it closes in a new line.
unformated test.astro:
<input type="text" class="testing" />
formatted test.astro:
In .html files it works as spected:
unformated test.html:
formatted test.html:
npm init astro
npm i --save-dev prettier prettier-plugin-astro
npx prettier --write .
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Bug
With this prettier configuration:
.prettierrc:
In .astro files, I spect self-closing tags to be closed in the same line of its lasts attribute, but it closes in a new line.
unformated test.astro:
formatted test.astro:
In .html files it works as spected:
unformated test.html:
formatted test.html:
Steps to Reproduce
npm init astro
using template Emptynpm i --save-dev prettier prettier-plugin-astro
npx prettier --write .
The text was updated successfully, but these errors were encountered: