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('InputAmountComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ InputAmountComponent ]
})
.compileComponents();
declarations: [InputAmountComponent]
}).compileComponents();
fixture = TestBed.createComponent(InputAmountComponent);
component = fixture.componentInstance;
@@ -8,7 +8,6 @@ import { UntypedFormControl } from '@angular/forms';
styleUrls: ['./input-amount.component.scss']
})
export class InputAmountComponent {
@Input() isRequired = false;
@Input() currency: Currency;
@Input() inputLabel: string;
@@ -16,10 +15,10 @@ export class InputAmountComponent {
displayHint = false;
constructor() { }
constructor() {}
numberOnly(event: any): boolean {
const charCode = (event.which) ? event.which : event.keyCode;
const charCode = event.which ? event.which : event.keyCode;
if (charCode === 46) {
if (!(this.inputFormControl.value.indexOf('.') > -1)) {
return true;
@@ -38,5 +37,4 @@ export class InputAmountComponent {
inputFocus(): void {
this.displayHint = true;
}
}