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
@@ -1,5 +1,7 @@
<span (mouseenter)="mouseEnter()" (mouseleave)="mouseLeave()" *ngIf="!emptyValue">
<span class="m-l-3" *ngIf="isLongValue()" (click)="showValue()"><fa-icon icon="eye" size="sm" [title]="textValue"></fa-icon></span>
<span class="m-l-3" *ngIf="isLongValue()" (click)="showValue()"
><fa-icon icon="eye" size="sm" [title]="textValue"></fa-icon
></span>
<span class="m-l-5" *ngIf="isLongValue()" (click)="showValue()">{{ textValue | truncateText: printChars }}...</span>
<span class="m-l-5" *ngIf="!isLongValue()" (click)="showValue()">{{ textValue }}</span>
</span>
@@ -8,9 +8,8 @@ describe('LongTextComponent', () => {
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ LongTextComponent ]
})
.compileComponents();
declarations: [LongTextComponent]
}).compileComponents();
fixture = TestBed.createComponent(LongTextComponent);
component = fixture.componentInstance;
@@ -16,10 +16,10 @@ export class LongTextComponent implements OnInit {
printChars = 30;
constructor() { }
constructor() {}
ngOnInit(): void {
this.emptyValue = (!this.textValue || this.textValue === '');
this.emptyValue = !this.textValue || this.textValue === '';
this.printChars = this.chars;
}
@@ -27,7 +27,7 @@ export class LongTextComponent implements OnInit {
if (this.textValue == null) {
return false;
}
return (this.textValue.length > 25);
return this.textValue.length > 25;
}
showValue() {