build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -6,10 +6,10 @@ import { SettingsService } from 'app/settings/settings.service';
|
||||
name: 'formatNumber'
|
||||
})
|
||||
export class FormatNumberPipe implements PipeTransform {
|
||||
|
||||
constructor(private decimalFormat: DecimalPipe,
|
||||
private settingsService: SettingsService) {
|
||||
}
|
||||
constructor(
|
||||
private decimalFormat: DecimalPipe,
|
||||
private settingsService: SettingsService
|
||||
) {}
|
||||
|
||||
transform(value: string | number, defaultValue: any): string {
|
||||
if (!value) {
|
||||
@@ -19,5 +19,4 @@ export class FormatNumberPipe implements PipeTransform {
|
||||
const format = `1.${decimals}-${decimals}`;
|
||||
return this.decimalFormat.transform(value, format);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user