Skip to content

Commit 6270bba

Browse files
JeanMecheAndrewKushnir
authored andcommitted
ci: reformat files
This is after we've slightly changed a rule in angular#66056
1 parent 06be803 commit 6270bba

File tree

483 files changed

+7251
-7436
lines changed

Some content is hidden

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

483 files changed

+7251
-7436
lines changed

.devcontainer/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
This folder contains configuration files that can be used to opt into working on this repository in a [Docker container](https://www.docker.com/resources/what-container) via [VSCode](https://code.visualstudio.com/)'s Remote Development feature (see below).
44

55
Info on remote development and developing inside a container with VSCode:
6+
67
- [VSCode: Remote Development](https://code.visualstudio.com/docs/remote/remote-overview)
78
- [VSCode: Developing inside a Container](https://code.visualstudio.com/docs/remote/containers)
89
- [VSCode: Remote Development FAQ](https://code.visualstudio.com/docs/remote/faq)
910

10-
1111
## Usage
1212

1313
_Prerequisite: [Install Docker](https://docs.docker.com/install) on your local environment._
1414

1515
To get started, read and follow the instructions in [Developing inside a Container](https://code.visualstudio.com/docs/remote/containers). The [.devcontainer/](.) directory contains pre-configured `devcontainer.json` and `Dockerfile` files, which you can use to set up remote development with a docker container.
1616

1717
In a nutshell, you need to:
18+
1819
- Install the [Remote - Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension.
1920
- Copy [recommended-Dockerfile](./recommended-Dockerfile) to `Dockerfile` (and optionally tweak to suit your needs).
2021
- Copy [recommended-devcontainer.json](./recommended-devcontainer.json) to `devcontainer.json` (and optionally tweak to suit your needs).
@@ -23,7 +24,6 @@ In a nutshell, you need to:
2324

2425
The `.devcontainer/devcontainer.json` and `.devcontainer/Dockerfile` files are ignored by git, so you can have your own local versions. We may occasionally update the template files ([recommended-devcontainer.json](./recommended-devcontainer.json), [recommended-Dockerfile](./recommended-Dockerfile)), in which case you will need to manually update your local copies (if desired).
2526

26-
2727
## Updating `recommended-devcontainer.json` and `recommended-Dockerfile`
2828

2929
You can update and commit the recommended config files (which people use as basis for their local configs), if you find that something is broken, out-of-date or can be improved.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
## PR Checklist
2+
23
Please check if your PR fulfills the following requirements:
34

45
- [ ] The commit message follows our guidelines: https://github.com/angular/angular/blob/main/contributing-docs/commit-message-guidelines.md
56
- [ ] Tests for the changes have been added (for bug fixes / features)
67
- [ ] Docs have been added / updated (for bug fixes / features)
78

8-
99
## PR Type
10+
1011
What kind of change does this PR introduce?
1112

1213
<!-- Please check the one that applies to this PR using "x". -->
@@ -21,23 +22,19 @@ What kind of change does this PR introduce?
2122
- [ ] angular.dev application / infrastructure changes
2223
- [ ] Other... Please describe:
2324

24-
2525
## What is the current behavior?
26+
2627
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
2728

2829
Issue Number: N/A
2930

30-
3131
## What is the new behavior?
3232

33-
3433
## Does this PR introduce a breaking change?
3534

3635
- [ ] Yes
3736
- [ ] No
3837

39-
4038
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
4139

42-
4340
## Other information

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,6 @@ goldens/**/*.api.md
3333
adev/src/content/aria/**/*.json
3434
adev/src/content/cli/**/*.json
3535
adev/src/content/cdk/**/*.json
36+
37+
CHANGELOG.md
38+
CHANGELOG_ARCHIVE.md

adev/shared-docs/pipeline/api-gen/rendering/templates/code-line-group.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ import {CodeLine} from './code-line';
1212

1313
export function CodeLineGroup(props: {lines: CodeLineRenderable[]}) {
1414
if (props.lines.length > 1) {
15-
return (<div class="shiki-ln-group">
16-
{
17-
props.lines.map(line =>
18-
<CodeLine line={line} />
19-
)
20-
}
21-
</div>);
15+
return (
16+
<div class="shiki-ln-group">
17+
{props.lines.map((line) => (
18+
<CodeLine line={line} />
19+
))}
20+
</div>
21+
);
2222
} else {
2323
return <CodeLine line={props.lines[0]} />;
2424
}

adev/shared-docs/pipeline/api-gen/rendering/templates/code-line.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function CodeLine(props: {line: CodeLineRenderable}) {
1818
const pattern = /<span[^>]*\bclass=["']line["'][^>]*>(.*)<\/span>/s;
1919
const match = line.contents.match(pattern);
2020

21-
//
21+
//
2222
let highlightedContent = match ? match[1] : line.contents;
2323

2424
if (line.id) {

adev/shared-docs/pipeline/api-gen/rendering/templates/header-cli.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88

99
import {h} from 'preact';
1010
import {CliCommandRenderable} from '../entities/renderables.mjs';
11-
import {HEADER_CLASS_NAME, HEADER_ENTRY_CATEGORY, HEADER_ENTRY_LABEL, HEADER_ENTRY_TITLE} from '../styling/css-classes.mjs';
11+
import {
12+
HEADER_CLASS_NAME,
13+
HEADER_ENTRY_CATEGORY,
14+
HEADER_ENTRY_LABEL,
15+
HEADER_ENTRY_TITLE,
16+
} from '../styling/css-classes.mjs';
1217

1318
/** Component to render a header of the CLI page. */
1419
export function HeaderCli(props: {command: CliCommandRenderable}) {
@@ -20,7 +25,9 @@ export function HeaderCli(props: {command: CliCommandRenderable}) {
2025

2126
<div className={HEADER_ENTRY_TITLE}>
2227
<div>
23-
<h1>{command.parentCommand?.name} {command.name}</h1>
28+
<h1>
29+
{command.parentCommand?.name} {command.name}
30+
</h1>
2431
<div className={`${HEADER_ENTRY_LABEL} type-command full`}>{'Command'}</div>
2532
</div>
2633
</div>

adev/shared-docs/pipeline/api-gen/rendering/templates/parameter.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ export function Parameter(props: {param: ParameterEntryRenderable}) {
1717
const param = props.param;
1818

1919
return (
20-
<div className={PARAM_GROUP_CLASS_NAME}>
21-
{/*TODO: isOptional, isRestParam*/}
22-
<span class="docs-param-keyword">@param</span>
23-
<span class="docs-param-name">{param.name}</span>
24-
<CodeSymbol code={param.type} />
25-
<RawHtml value={param.htmlDescription} className="docs-parameter-description" />
26-
</div>
20+
<div className={PARAM_GROUP_CLASS_NAME}>
21+
{/*TODO: isOptional, isRestParam*/}
22+
<span class="docs-param-keyword">@param</span>
23+
<span class="docs-param-name">{param.name}</span>
24+
<CodeSymbol code={param.type} />
25+
<RawHtml value={param.htmlDescription} className="docs-parameter-description" />
26+
</div>
2727
);
2828
}

adev/src/app/core/services/errors-handling/error-snack-bar.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,15 @@ export interface ErrorSnackBarData {
3030
</button>
3131
`,
3232
imports: [MatSnackBarAction],
33-
styles: `:host { display: flex; align-items: center; button { margin-left: 16px }}`,
33+
styles: `
34+
:host {
35+
display: flex;
36+
align-items: center;
37+
button {
38+
margin-left: 16px;
39+
}
40+
}
41+
`,
3442
})
3543
export class ErrorSnackBar {
3644
protected snackBarRef = inject<MatSnackBarRef<ErrorSnackBar>>(MatSnackBarRef);

adev/src/app/features/home/animation/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@ class AnimationHost implements AfterViewInit {
3434
layers = viewChildren(AnimationLayerDirective);
3535

3636
constructor() {
37-
afterNextRender({ read: () => {
38-
// The layers must be provided
39-
const animation = this.animationCreator.createAnimation(this.layers());
40-
// ...
41-
}});
37+
afterNextRender({
38+
read: () => {
39+
// The layers must be provided
40+
const animation = this.animationCreator.createAnimation(this.layers());
41+
// ...
42+
},
43+
});
4244
}
4345
}
4446
```
@@ -73,8 +75,8 @@ const DEFINITION: AnimationDefinition = [
7375
},
7476
to: {
7577
'background-color': '#fff',
76-
}
77-
}
78+
},
79+
},
7880
];
7981
```
8082

adev/src/app/features/home/animation/plugins/animation-player.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export type ComponentAlignment = 'left' | 'center' | 'right';
4949
bottom: 30px;
5050
padding: 10px;
5151
border-radius: 12px;
52-
background: rgba(0,0,0, 0.7);
52+
background: rgba(0, 0, 0, 0.7);
5353
backdrop-filter: blur(10px);
5454
border: 1px solid rgba(255, 255, 255, 0.1);
5555
z-index: 999999;

0 commit comments

Comments
 (0)