Skip to content

Commit 0c96870

Browse files
committed
build: reformat style and template files
It looks like `ng-dev` started enforcing formatting for style and html files at some point. These changes reformat all the files so we don't need to do it ad-hoc. Fixes #32589.
1 parent 869d4f8 commit 0c96870

725 files changed

Lines changed: 10302 additions & 7690 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ src/cdk/schematics/ng-update/test-cases/**/*_expected_output.ts
1212
src/material/schematics/ng-update/test-cases/**/*_input.ts
1313
src/material/schematics/ng-update/test-cases/**/*_expected_output.ts
1414

15+
# Template files for docs
16+
tools/**/*.template.html
17+
1518
pnpm-lock.yaml
1619

1720

.stylelintrc.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,28 +113,20 @@
113113
],
114114
"block-closing-brace-newline-before": "always-multi-line",
115115
"block-opening-brace-newline-after": "always-multi-line",
116-
"block-opening-brace-space-before": "always-multi-line",
117116

118117
"selector-attribute-brackets-space-inside": "never",
119118
"selector-attribute-operator-space-after": "never",
120119
"selector-attribute-operator-space-before": "never",
121120
"selector-combinator-space-after": "always",
122121
"selector-combinator-space-before": "always",
123122
"selector-pseudo-class-case": "lower",
124-
"selector-pseudo-class-parentheses-space-inside": "never",
125123
"selector-pseudo-element-case": "lower",
126124
"selector-pseudo-element-colon-notation": "double",
127125
"selector-pseudo-element-no-unknown": true,
128126
"selector-type-case": "lower",
129127
"selector-max-id": 0,
130128
"no-missing-end-of-source-newline": true,
131129
"no-eol-whitespace": true,
132-
"max-line-length": [
133-
100,
134-
{
135-
"ignorePattern": "/https?://.*/"
136-
}
137-
],
138130
"linebreaks": "unix",
139131
"selector-class-pattern": [
140132
"^_?(mat-|cdk-|example-|demo-|ng-|mdc-|map-|test-|youtube-player-|docs-|scene-|hljs)",

docs/scenes/src/app/scenes/autocomplete/autocomplete-scene.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<form>
22
<mat-form-field appearance="fill">
3-
<input type="text"
4-
placeholder="Greetings"
5-
aria-label="Greetings"
6-
matInput
7-
[formControl]="myControl"
8-
[matAutocomplete]="auto">
3+
<input
4+
type="text"
5+
placeholder="Greetings"
6+
aria-label="Greetings"
7+
matInput
8+
[formControl]="myControl"
9+
[matAutocomplete]="auto"
10+
/>
911
<mat-autocomplete autoActiveFirstOption #auto="matAutocomplete">
1012
@for (option of options; track option) {
1113
<mat-option [value]="option">{{option}}</mat-option>
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div class="scene-chips-wrapper">
2-
<h2>Amenities</h2>
3-
<mat-chip-listbox>
4-
<mat-chip-option selected="true">Washer/Dryer</mat-chip-option>
5-
<mat-chip-option>Dogs ok</mat-chip-option>
6-
<mat-chip-option selected="true">Cats ok</mat-chip-option>
7-
<mat-chip-option>Fireplace</mat-chip-option>
8-
<mat-chip-option>Wheelchair accessible</mat-chip-option>
9-
<mat-chip-option>Elevator</mat-chip-option>
10-
</mat-chip-listbox>
2+
<h2>Amenities</h2>
3+
<mat-chip-listbox>
4+
<mat-chip-option selected="true">Washer/Dryer</mat-chip-option>
5+
<mat-chip-option>Dogs ok</mat-chip-option>
6+
<mat-chip-option selected="true">Cats ok</mat-chip-option>
7+
<mat-chip-option>Fireplace</mat-chip-option>
8+
<mat-chip-option>Wheelchair accessible</mat-chip-option>
9+
<mat-chip-option>Elevator</mat-chip-option>
10+
</mat-chip-listbox>
1111
</div>
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<div class="docs-calendar-wrapper">
2-
<mat-calendar class="docs-calendar"
2+
<mat-calendar
3+
class="docs-calendar"
34
[minDate]="minDate"
45
[maxDate]="maxDate"
5-
[selected]="selectedDate" />
6+
[selected]="selectedDate"
7+
/>
68
</div>

docs/scenes/src/app/scenes/expansion/expansion-scene.html

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
<mat-panel-title>
55
<mat-icon>group</mat-icon>
66
</mat-panel-title>
7-
<mat-panel-description>
8-
Authorized users
9-
</mat-panel-description>
7+
<mat-panel-description> Authorized users </mat-panel-description>
108
</mat-expansion-panel-header>
119
<div class="docs-expansion-scene-content"><mat-icon>add</mat-icon> Add user</div>
1210
</mat-expansion-panel>
@@ -15,9 +13,7 @@
1513
<mat-panel-title>
1614
<mat-icon>public</mat-icon>
1715
</mat-panel-title>
18-
<mat-panel-description>
19-
Network settings
20-
</mat-panel-description>
16+
<mat-panel-description> Network settings </mat-panel-description>
2117
</mat-expansion-panel-header>
2218
<p>This is the primary content of the panel.</p>
2319
</mat-expansion-panel>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<mat-form-field appearance="fill">
22
<mat-label>Password</mat-label>
3-
<input matInput type="password" required>
3+
<input matInput type="password" required />
44
<mat-hint align="end">Forgot password?</mat-hint>
55
<mat-icon matSuffix>visibility_off</mat-icon>
66
</mat-form-field>
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
<mat-grid-list cols="4" rowHeight="70px">
22
@for (tile of tiles; track tile) {
3-
<mat-grid-tile
4-
[colspan]="tile.cols"
5-
[rowspan]="tile.rows"
6-
[style.background]="tile.color"/>
3+
<mat-grid-tile [colspan]="tile.cols" [rowspan]="tile.rows" [style.background]="tile.color" />
74
}
85
</mat-grid-list>
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<div class="scene-inputs">
22
<mat-form-field appearance="fill">
33
<mat-label>Title</mat-label>
4-
<input matInput type="text">
4+
<input matInput type="text" />
55
</mat-form-field>
66

77
<mat-form-field appearance="fill">
88
<mat-label>Feedback</mat-label>
99
<textarea matInput></textarea>
1010
</mat-form-field>
1111
</div>
12-

docs/scenes/src/app/scenes/menu/menu-scene.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
<button mat-icon-button class="scene-menu-button" #menuTrigger="matMenuTrigger" [matMenuTriggerFor]="menu" aria-label="Example icon-button with a menu">
1+
<button
2+
mat-icon-button
3+
class="scene-menu-button"
4+
#menuTrigger="matMenuTrigger"
5+
[matMenuTriggerFor]="menu"
6+
aria-label="Example icon-button with a menu"
7+
>
28
<mat-icon>more_vert</mat-icon>
39
</button>
410
<mat-menu #menu="matMenu">

0 commit comments

Comments
 (0)