Skip to content

Commit 4cf30a5

Browse files
committed
style: 💄 (prettier) add prettierrc and reformat
1 parent e3197b1 commit 4cf30a5

File tree

9 files changed

+29
-26
lines changed

9 files changed

+29
-26
lines changed

.prettierrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +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
})
88
export class AppComponent {}

projects/ng-if-responsive-showcase/src/app/app.module.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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({
1010
declarations: [AppComponent],
@@ -13,7 +13,7 @@ import { AppComponent } from "./app.component";
1313
{
1414
provide: HIGHLIGHT_OPTIONS,
1515
useValue: {
16-
fullLibraryLoader: async () => await import("highlight.js"),
16+
fullLibraryLoader: async () => await import('highlight.js'),
1717
},
1818
},
1919
],

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

projects/ng-if-responsive/src/lib/sample.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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",
6+
selector: 'angular-library-starter-sample',
77
template: `<h1>
88
The best framework is {{ sampleService.getBestFramework() }}
99
</h1>`,
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { SampleService } from "./sample.service";
1+
import { SampleService } from './sample.service';
22

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

66
beforeEach(() => {
77
sut = new SampleService();
88
});
99

10-
it("should know that Angular is the best framework", () => {
11-
expect(sut.getBestFramework()).toBe("Angular");
10+
it('should know that Angular is the best framework', () => {
11+
expect(sut.getBestFramework()).toBe('Angular');
1212
});
1313
});
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +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 {
77
public getBestFramework(): string {
8-
return "Angular";
8+
return 'Angular';
99
}
1010
}
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)