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('LoansAccountScheduleStepComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ LoansAccountScheduleStepComponent ]
})
.compileComponents();
declarations: [LoansAccountScheduleStepComponent]
}).compileComponents();
});
beforeEach(() => {
@@ -9,7 +9,6 @@ import { SettingsService } from 'app/settings/settings.service';
styleUrls: ['./loans-account-schedule-step.component.scss']
})
export class LoansAccountScheduleStepComponent {
/** Currency Code */
@Input() currencyCode: string;
/** Loans Account Template */
@@ -19,22 +18,29 @@ export class LoansAccountScheduleStepComponent {
/** Loans Account Data */
@Input() loansAccount: any;
repaymentScheduleDetails: any = {periods: []};
repaymentScheduleDetails: any = { periods: [] };
loanId: any = null;
constructor(private loansService: LoansService,
constructor(
private loansService: LoansService,
private settingsService: SettingsService,
private route: ActivatedRoute) {
this.loanId = this.route.snapshot.params['loanId'];
private route: ActivatedRoute
) {
this.loanId = this.route.snapshot.params['loanId'];
}
showRepaymentInfo(): void {
this.repaymentScheduleDetails = {periods: []};
this.repaymentScheduleDetails = { periods: [] };
const locale = this.settingsService.language.code;
const dateFormat = this.settingsService.dateFormat;
const payload = this.loansService.buildLoanRequestPayload(this.loansAccount, this.loansAccountTemplate,
this.loansAccountProductTemplate.calendarOptions, locale, dateFormat);
const payload = this.loansService.buildLoanRequestPayload(
this.loansAccount,
this.loansAccountTemplate,
this.loansAccountProductTemplate.calendarOptions,
locale,
dateFormat
);
delete payload['enableInstallmentLevelDelinquency'];
this.loansService.calculateLoanSchedule(payload).subscribe((response: any) => {