build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -8,9 +8,8 @@ describe('FileUploadComponent', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ FileUploadComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
declarations: [FileUploadComponent]
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -10,7 +10,6 @@ import { Component, Input, Output, EventEmitter, OnInit } from '@angular/core';
|
||||
styleUrls: ['./file-upload.component.scss']
|
||||
})
|
||||
export class FileUploadComponent implements OnInit {
|
||||
|
||||
/** Form field flex dimension */
|
||||
@Input() flex: any;
|
||||
@Input() acceptFilter: string;
|
||||
@@ -18,7 +17,7 @@ export class FileUploadComponent implements OnInit {
|
||||
/** Selected file name */
|
||||
fileName: File;
|
||||
|
||||
constructor() { }
|
||||
constructor() {}
|
||||
|
||||
ngOnInit() {
|
||||
if (!this.acceptFilter) {
|
||||
@@ -33,5 +32,4 @@ export class FileUploadComponent implements OnInit {
|
||||
onFileSelect($event: any) {
|
||||
this.fileName = $event.target.files[0].name;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user