Skip to content

Commit

Permalink
prettier (html): bracketSameLine
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuj committed Jan 28, 2025
1 parent 8f6f566 commit 0e23a26
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 23 deletions.
3 changes: 2 additions & 1 deletion PAC7_Ex_Prac/ecommerce/.prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
{
"files": "*.html",
"options": {
"parser": "angular"
"parser": "angular",
"bracketSameLine": true
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
<div>
<button
[disabled]="article.quantityInCart === 0"
(click)="decrementInCart()"
>
(click)="decrementInCart()">
-
</button>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ <h4 class="error-header">{{ message }}</h4>
formControlName="name"
placeholder="Nom del l'article"
size="45"
required
/>
required />
</div>
<div
class="error padding-botton"
*ngIf="(name.dirty || message) && name.invalid"
>
*ngIf="(name.dirty || message) && name.invalid">
Cal introduir un nom d'article vàlid
</div>
<div class="field padding-botton">
Expand All @@ -30,13 +28,11 @@ <h4 class="error-header">{{ message }}</h4>
id="price"
formControlName="price"
placeholder="Preu de l'article"
required
/>
required />
</div>
<div
class="error padding-botton"
*ngIf="(price.dirty || message) && price.invalid"
>
*ngIf="(price.dirty || message) && price.invalid">
Cal introduir un preu per a l'article major a 0.1
</div>
<div class="field padding-botton">
Expand All @@ -48,13 +44,11 @@ <h4 class="error-header">{{ message }}</h4>
formControlName="imageUrl"
placeholder="URL de la imatge"
size="65"
required
/>
required />
</div>
<div
class="error padding-botton"
*ngIf="(imageUrl.dirty || message) && imageUrl.invalid"
>
*ngIf="(imageUrl.dirty || message) && imageUrl.invalid">
<div *ngIf="imageUrl.errors.required">
Cal introduir la URL de la imatge
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ <h3>{{ message }}</h3>
type="text"
placeholder="Username"
name="username"
formControlName="username"
/>
formControlName="username" />
<div class="error" *ngIf="username.invalid">Username is mandatory</div>
</div>
<div class="input-field">
Expand All @@ -17,8 +16,7 @@ <h3>{{ message }}</h3>
type="password"
placeholder="Password"
name="password"
formControlName="password"
/>
formControlName="password" />
<div class="error" *ngIf="password.invalid">Password is mandatory</div>
</div>
<button type="submit">Login</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ <h3>{{ message }}</h3>
type="text"
placeholder="Username"
name="username"
formControlName="username"
/>
formControlName="username" />
<div class="error" *ngIf="username.invalid">Username is mandatory</div>
</div>
<div class="input-field">
Expand All @@ -18,8 +17,7 @@ <h3>{{ message }}</h3>
placeholder="Password"
required
name="password"
formControlName="password"
/>
formControlName="password" />
<div class="error" *ngIf="password.invalid">Password is mandatory</div>
</div>
<button type="submit">Register</button>
Expand Down

0 comments on commit 0e23a26

Please sign in to comment.