Skip to content

Commit fd01c80

Browse files
committed
style: 💄 (prettier) reformat with prettier
1 parent cd6ed13 commit fd01c80

File tree

9 files changed

+55
-62
lines changed

9 files changed

+55
-62
lines changed

projects/ng-if-responsive-showcase/src/app/app.component.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ <h2 class="text-lg text-white pl-2">Showcase</h2>
1010
"Start building an epic Angular library and showcase it here"
1111
</blockquote>
1212

13-
<angular-library-starter-sample class="text-xl"></angular-library-starter-sample>
14-
13+
<angular-library-starter-sample
14+
class="text-xl"
15+
></angular-library-starter-sample>
1516
</div>
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
import { Component } from '@angular/core';
1+
import { Component } from "@angular/core";
22

33
@Component({
4-
selector: 'app-root',
5-
templateUrl: './app.component.html',
6-
styleUrls: ['./app.component.scss'],
4+
selector: "app-root",
5+
templateUrl: "./app.component.html",
6+
styleUrls: ["./app.component.scss"],
77
})
8-
export class AppComponent {
9-
}
8+
export class AppComponent {}
Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,22 @@
1-
import {NgModule} from '@angular/core';
2-
import {BrowserModule} from '@angular/platform-browser';
3-
import {HIGHLIGHT_OPTIONS, HighlightModule} from 'ngx-highlightjs';
1+
import { NgModule } from "@angular/core";
2+
import { BrowserModule } from "@angular/platform-browser";
3+
import { HIGHLIGHT_OPTIONS, HighlightModule } from "ngx-highlightjs";
44

5-
import {SampleComponent} from "../../../ng-if-responsive/src/lib/sample.component";
5+
import { SampleComponent } from "../../../ng-if-responsive/src/lib/sample.component";
66

7-
import {AppComponent} from './app.component';
7+
import { AppComponent } from "./app.component";
88

99
@NgModule({
10-
declarations: [AppComponent],
11-
imports: [
12-
BrowserModule,
13-
HighlightModule,
14-
SampleComponent
15-
],
16-
providers: [
17-
{
18-
provide: HIGHLIGHT_OPTIONS,
19-
useValue: {
20-
fullLibraryLoader: async () => await import('highlight.js'),
21-
},
22-
},
23-
],
24-
bootstrap: [AppComponent],
10+
declarations: [AppComponent],
11+
imports: [BrowserModule, HighlightModule, SampleComponent],
12+
providers: [
13+
{
14+
provide: HIGHLIGHT_OPTIONS,
15+
useValue: {
16+
fullLibraryLoader: async () => await import("highlight.js"),
17+
},
18+
},
19+
],
20+
bootstrap: [AppComponent],
2521
})
26-
export class AppModule {
27-
}
22+
export class AppModule {}

projects/ng-if-responsive-showcase/src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { enableProdMode } from '@angular/core';
2-
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
1+
import { enableProdMode } from "@angular/core";
2+
import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
33

4-
import { AppModule } from './app/app.module';
5-
import { environment } from './environments/environment';
4+
import { AppModule } from "./app/app.module";
5+
import { environment } from "./environments/environment";
66

77
if (environment.production) {
88
enableProdMode();

projects/ng-if-responsive-showcase/src/polyfills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
/***************************************************************************************************
4646
* Zone JS is required by default for Angular itself.
4747
*/
48-
import 'zone.js'; // Included with Angular CLI.
48+
import "zone.js"; // Included with Angular CLI.
4949

5050
/***************************************************************************************************
5151
* APPLICATION IMPORTS
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import {ChangeDetectionStrategy, Component} from "@angular/core";
1+
import { ChangeDetectionStrategy, Component } from "@angular/core";
22

3-
import {SampleService} from "./sample.service";
3+
import { SampleService } from "./sample.service";
44

55
@Component({
6-
selector: 'angular-library-starter-sample',
7-
template: `<h1>The best framework is {{sampleService.getBestFramework()}}</h1>`,
8-
standalone: true,
9-
changeDetection: ChangeDetectionStrategy.OnPush
6+
selector: "angular-library-starter-sample",
7+
template: `<h1>
8+
The best framework is {{ sampleService.getBestFramework() }}
9+
</h1>`,
10+
standalone: true,
11+
changeDetection: ChangeDetectionStrategy.OnPush,
1012
})
1113
export class SampleComponent {
12-
13-
constructor(public sampleService: SampleService) {
14-
}
14+
constructor(public sampleService: SampleService) {}
1515
}
Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
1-
import {SampleService} from "./sample.service";
1+
import { SampleService } from "./sample.service";
22

3-
describe('Sample Service', () => {
3+
describe("Sample Service", () => {
4+
let sut: SampleService;
45

5-
let sut: SampleService;
6+
beforeEach(() => {
7+
sut = new SampleService();
8+
});
69

7-
beforeEach(() => {
8-
sut = new SampleService();
9-
});
10-
11-
it('should know that Angular is the best framework', () => {
12-
expect(sut.getBestFramework()).toBe('Angular');
13-
});
14-
})
10+
it("should know that Angular is the best framework", () => {
11+
expect(sut.getBestFramework()).toBe("Angular");
12+
});
13+
});
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
import {Injectable} from "@angular/core";
1+
import { Injectable } from "@angular/core";
22

33
@Injectable({
4-
providedIn: 'root'
4+
providedIn: "root",
55
})
66
export class SampleService {
7-
8-
public getBestFramework(): string {
9-
return 'Angular';
10-
}
7+
public getBestFramework(): string {
8+
return "Angular";
9+
}
1110
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/*
22
* Public API Surface of ng-if-responsive
33
*/
4-
export * from './lib/sample.component';
4+
export * from "./lib/sample.component";

0 commit comments

Comments
 (0)