Set prettier htmlWhitespaceSensitivity to ignore

Prevents prettier from break tags across lines when wrapping text.
This commit is contained in:
Brian Ginsburg 2022-07-22 15:26:43 -07:00
parent 733a4c9b2d
commit 92f3b39b30
No known key found for this signature in database
GPG Key ID: B7A01B90EB115B2D
3 changed files with 12 additions and 8 deletions

View File

@ -1,5 +1,6 @@
module.exports = {
arrowParens: 'avoid',
htmlWhitespaceSensitivity: 'ignore',
semi: false,
singleQuote: true,
svelteBracketNewLine: true,

View File

@ -6,12 +6,12 @@
<div>
<h3 class="mb-7 text-xl font-serif">Connect to AppName</h3>
<div>
<a class="btn btn-primary mb-5 w-full" href="/register"
>Create a new account</a
>
<a class="btn btn-primary btn-outline w-full" href="/"
>I have an existing account</a
>
<a class="btn btn-primary mb-5 w-full" href="/register">
Create a new account
</a>
<a class="btn btn-primary btn-outline w-full" href="/">
I have an existing account
</a>
</div>
</div>
</div>

View File

@ -65,8 +65,9 @@
<label
for="shared-computer"
class="cursor-pointer ml-1 text-sm text-slate-700 inline-grid"
>This is a shared computer</label
>
This is a shared computer
</label>
</div>
<div class="mt-5">
@ -75,8 +76,10 @@
class="btn btn-primary"
disabled={username.length === 0 ||
!usernameValid ||
!usernameAvailable}>Register</button
!usernameAvailable}
>
Register
</button>
</div>
</div>
</div>