build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -8,9 +8,8 @@ describe('TenantSelectorComponent', () => {
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
declarations: [ TenantSelectorComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
declarations: [TenantSelectorComponent]
|
||||
}).compileComponents();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -8,7 +8,6 @@ import { SettingsService } from 'app/settings/settings.service';
|
||||
styleUrls: ['./tenant-selector.component.scss']
|
||||
})
|
||||
export class TenantSelectorComponent implements OnInit {
|
||||
|
||||
/** Tenant selector form control. */
|
||||
tenantSelector = new UntypedFormControl();
|
||||
|
||||
@@ -16,7 +15,7 @@ export class TenantSelectorComponent implements OnInit {
|
||||
* Sets the Tenant Identifier of the application in the selector on initial setup.
|
||||
* @param {SettingsService} settingsService Settings Service.
|
||||
*/
|
||||
constructor(private settingsService: SettingsService) { }
|
||||
constructor(private settingsService: SettingsService) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
this.tenantSelector.setValue(this.settingsService.tenantIdentifier);
|
||||
@@ -35,7 +34,6 @@ export class TenantSelectorComponent implements OnInit {
|
||||
}
|
||||
|
||||
allowSelection(): boolean {
|
||||
return (this.tenants.length > 1);
|
||||
return this.tenants.length > 1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user