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('ViewCashierComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ ViewCashierComponent ]
})
.compileComponents();
declarations: [ViewCashierComponent]
}).compileComponents();
}));
beforeEach(() => {
@@ -18,7 +18,6 @@ import { OrganizationService } from 'app/organization/organization.service';
styleUrls: ['./view-cashier.component.scss']
})
export class ViewCashierComponent {
/** Cashier data. */
cashierData: any;
@@ -29,10 +28,12 @@ export class ViewCashierComponent {
* @param {OrganizationService} organizationService Organization Service
* @param {MatDialog} dialog Mat Dialog
*/
constructor(private route: ActivatedRoute,
private router: Router,
private organizationService: OrganizationService,
public dialog: MatDialog) {
constructor(
private route: ActivatedRoute,
private router: Router,
private organizationService: OrganizationService,
public dialog: MatDialog
) {
this.route.data.subscribe((data: { cashier: any }) => {
this.cashierData = data.cashier;
});
@@ -48,10 +49,9 @@ export class ViewCashierComponent {
deleteCashierDialogRef.afterClosed().subscribe((response: any) => {
if (response.delete) {
this.organizationService.deleteCashier(this.cashierData.tellerId, this.cashierData.id).subscribe(() => {
this.router.navigate(['../'], {relativeTo: this.route});
this.router.navigate(['../'], { relativeTo: this.route });
});
}
});
}
}