Skip to content

Commit 8adaf0b

Browse files
committedFeb 20, 2020
fix syntax error
1 parent 15e9b5b commit 8adaf0b

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed
 

‎.prettierrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

‎src/app/header/header.component.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import { Component, EventEmitter, OnInit, Output } from "@angular/core";
2-
import { ArticlesService } from "../articles.service";
1+
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
2+
import { ArticlesService } from '../articles.service';
33

44
@Component({
5-
selector: "app-header",
6-
templateUrl: "./header.component.html",
7-
styleUrls: ["./header.component.css"]
5+
selector: 'app-header',
6+
templateUrl: './header.component.html',
7+
styleUrls: ['./header.component.css']
88
})
99
export class HeaderComponent implements OnInit {
1010
@Output() keywordChange = new EventEmitter<string>();
1111

12-
keyword = "";
12+
keyword = '';
1313

1414
highlightTitle = false;
1515
fontSize = 24;

‎tsconfig.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@
99
"emitDecoratorMetadata": true,
1010
"experimentalDecorators": true,
1111
"target": "es5",
12-
"typeRoots": [
13-
"node_modules/@types"
14-
],
15-
"lib": [
16-
"es2017",
17-
"dom"
18-
]
12+
"typeRoots": ["node_modules/@types"],
13+
"lib": ["es2017", "dom"]
1914
}
2015
}

0 commit comments

Comments
 (0)