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('SharesAccountDetailsStepComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ SharesAccountDetailsStepComponent ]
})
.compileComponents();
declarations: [SharesAccountDetailsStepComponent]
}).compileComponents();
}));
beforeEach(() => {
@@ -15,7 +15,6 @@ import { SharesService } from 'app/shares/shares.service';
styleUrls: ['./shares-account-details-step.component.scss']
})
export class SharesAccountDetailsStepComponent implements OnInit {
/** Shares Account Template */
@Input() sharesAccountTemplate: any;
@@ -37,9 +36,11 @@ export class SharesAccountDetailsStepComponent implements OnInit {
* @param {SharesService} sharesService Shares Service.
* @param {SettingsService} settingsService Settings Service
*/
constructor(private formBuilder: UntypedFormBuilder,
private sharesService: SharesService,
private settingsService: SettingsService) {
constructor(
private formBuilder: UntypedFormBuilder,
private sharesService: SharesService,
private settingsService: SettingsService
) {
this.createSharesAccountDetailsForm();
}
@@ -50,9 +51,11 @@ export class SharesAccountDetailsStepComponent implements OnInit {
this.productData = this.sharesAccountTemplate.productOptions;
if (this.sharesAccountTemplate.productId) {
this.sharesAccountDetailsForm.patchValue({
'productId': this.sharesAccountTemplate.productId,
'submittedDate': this.sharesAccountTemplate.timeline.submittedOnDate && new Date(this.sharesAccountTemplate.timeline.submittedOnDate),
'externalId': this.sharesAccountTemplate.externalId
productId: this.sharesAccountTemplate.productId,
submittedDate:
this.sharesAccountTemplate.timeline.submittedOnDate &&
new Date(this.sharesAccountTemplate.timeline.submittedOnDate),
externalId: this.sharesAccountTemplate.externalId
});
}
}
@@ -63,9 +66,15 @@ export class SharesAccountDetailsStepComponent implements OnInit {
*/
createSharesAccountDetailsForm() {
this.sharesAccountDetailsForm = this.formBuilder.group({
'productId': ['', Validators.required],
'submittedDate': ['', Validators.required],
'externalId': ['']
productId: [
'',
Validators.required
],
submittedDate: [
'',
Validators.required
],
externalId: ['']
});
}
@@ -87,5 +96,4 @@ export class SharesAccountDetailsStepComponent implements OnInit {
get sharesAccountDetails() {
return this.sharesAccountDetailsForm.value;
}
}