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
@@ -17,7 +17,6 @@ import { SettingsService } from 'app/settings/settings.service';
styleUrls: ['./undo-client-transfer.component.scss']
})
export class UndoClientTransferComponent implements OnInit {
/** Undo Client Transfer form. */
undoClientTransferForm: UntypedFormGroup;
/** Client Id */
@@ -31,12 +30,14 @@ export class UndoClientTransferComponent implements OnInit {
* @param {ActivatedRoute} route Activated Route
* @param {Router} router Router
*/
constructor(private formBuilder: UntypedFormBuilder,
private clientsService: ClientsService,
private settingsService: SettingsService,
private dateUtils: Dates,
private route: ActivatedRoute,
private router: Router) {
constructor(
private formBuilder: UntypedFormBuilder,
private clientsService: ClientsService,
private settingsService: SettingsService,
private dateUtils: Dates,
private route: ActivatedRoute,
private router: Router
) {
this.route.data.subscribe((data: { clientActionData: any }) => {
this.transferDate = data.clientActionData;
});
@@ -55,8 +56,8 @@ export class UndoClientTransferComponent implements OnInit {
*/
createUndoClientTransferForm() {
this.undoClientTransferForm = this.formBuilder.group({
'transferDate': {value: new Date(this.transferDate), disabled: true},
'note': ['']
transferDate: { value: new Date(this.transferDate), disabled: true },
note: ['']
});
}
@@ -79,5 +80,4 @@ export class UndoClientTransferComponent implements OnInit {
this.router.navigate(['../../'], { relativeTo: this.route });
});
}
}