build: Use prettier for typescript

Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
Ralph Hopman
2025-01-15 11:59:30 +00:00
committed by Adam Saghy
parent 9d6cf1514a
commit cac1d11ad7
1812 changed files with 22516 additions and 16862 deletions
@@ -8,9 +8,8 @@ describe('OverdueChargesTabComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ OverdueChargesTabComponent ]
})
.compileComponents();
declarations: [OverdueChargesTabComponent]
}).compileComponents();
}));
beforeEach(() => {
@@ -14,14 +14,18 @@ import { ActivatedRoute } from '@angular/router';
styleUrls: ['./overdue-charges-tab.component.scss']
})
export class OverdueChargesTabComponent implements OnInit {
/** Stores the resolved loan data */
loanDetails: any;
/** Stores the overdue data */
overdueCharges: any;
/** Columns to be displayed in overdue charges table. */
displayedColumns: string[] = ['name', 'type', 'amount', 'collectedon'];
displayedColumns: string[] = [
'name',
'type',
'amount',
'collectedon'
];
/** Data source for codes table. */
dataSource: MatTableDataSource<any>;
@@ -35,7 +39,7 @@ export class OverdueChargesTabComponent implements OnInit {
* @param {ActivatedRoute} route Activated Route.
*/
constructor(private route: ActivatedRoute) {
this.route.parent.data.subscribe(( data: { loanDetailsData: any }) => {
this.route.parent.data.subscribe((data: { loanDetailsData: any }) => {
this.loanDetails = data.loanDetailsData;
});
}
@@ -46,5 +50,4 @@ export class OverdueChargesTabComponent implements OnInit {
this.dataSource.paginator = this.paginator;
this.dataSource.sort = this.sort;
}
}