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
--svelte-bracket-new-line true
src/test.svelte:
src/test.svelte
<button class="bg-green-500 text-gray-100 hover:bg-green-400 flex items-center px-4 py-2 border border-l-0 rounded-r"> Copy </button> <div class="bg-green-500 text-gray-100 hover:bg-green-400 flex items-center px-4 py-2 border border-l-0 rounded-r"> Copy </div> <span class="bg-green-500 text-gray-100 hover:bg-green-400 flex items-center px-4 py-2 border border-l-0 rounded-r"> Copy </span> <p class="bg-green-500 text-gray-100 hover:bg-green-400 flex items-center px-4 py-2 border border-l-0 rounded-r"> Copy </p>
yarn prettier --plugin-search-dir=. src/test.svelte --svelte-bracket-new-line false
yarn prettier --plugin-search-dir=. src/test.svelte --svelte-bracket-new-line true (some are on same line):
yarn prettier --plugin-search-dir=. src/test.svelte --svelte-bracket-new-line true
<button class="bg-green-500 text-gray-100 hover:bg-green-400 flex items-center px-4 py-2 border border-l-0 rounded-r"> Copy </button> <div class="bg-green-500 text-gray-100 hover:bg-green-400 flex items-center px-4 py-2 border border-l-0 rounded-r" >Copy</div> <span class="bg-green-500 text-gray-100 hover:bg-green-400 flex items-center px-4 py-2 border border-l-0 rounded-r"> Copy </span> <p class="bg-green-500 text-gray-100 hover:bg-green-400 flex items-center px-4 py-2 border border-l-0 rounded-r" >Copy</p>
Version:
Config: official template without config
The text was updated successfully, but these errors were encountered:
(fix) svelteBracketNewLine fixes
f1c7856
sveltejs#194 - Don't group body so start and end both break at the same time if they must - Fix "should hug start?" logic in opening tag attributes
(fix) svelteBracketNewLine fixes (#195)
4b5b672
Fixes #194 - Don't group body so start and end both break at the same time if they must - Fix "should hug start?" logic in opening tag attributes
Successfully merging a pull request may close this issue.
src/test.svelte
:yarn prettier --plugin-search-dir=. src/test.svelte --svelte-bracket-new-line false
(works fine):yarn prettier --plugin-search-dir=. src/test.svelte --svelte-bracket-new-line true
(some are on same line):Version:
Config: official template without config
The text was updated successfully, but these errors were encountered: