build: Use prettier for typescript
Stop ignoring .ts files in prettier and fix existing issues.
This commit is contained in:
@@ -13,7 +13,6 @@ import { OrganizationService } from '../organization.service';
|
||||
*/
|
||||
@Injectable()
|
||||
export class PasswordPreferencesTemplateResolver implements Resolve<Object> {
|
||||
|
||||
/**
|
||||
* @param {OrganizationService} organizationService Organization service.
|
||||
*/
|
||||
@@ -26,5 +25,4 @@ export class PasswordPreferencesTemplateResolver implements Resolve<Object> {
|
||||
resolve(): Observable<any> {
|
||||
return this.organizationService.getPasswordPreferencesTemplate();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -8,9 +8,8 @@ describe('PasswordPreferencesComponent', () => {
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ PasswordPreferencesComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
declarations: [PasswordPreferencesComponent]
|
||||
}).compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
|
||||
@@ -15,7 +15,6 @@ import { OrganizationService } from '../organization.service';
|
||||
styleUrls: ['./password-preferences.component.scss']
|
||||
})
|
||||
export class PasswordPreferencesComponent implements OnInit {
|
||||
|
||||
/** Password preferences form. */
|
||||
passwordPreferencesForm: UntypedFormGroup;
|
||||
/** Password preferences data. */
|
||||
@@ -28,11 +27,13 @@ export class PasswordPreferencesComponent implements OnInit {
|
||||
* @param {ActivatedRoute} route Activated Route.
|
||||
* @param {Router} router Router for navigation.
|
||||
*/
|
||||
constructor(private formBuilder: UntypedFormBuilder,
|
||||
private organizationService: OrganizationService,
|
||||
private route: ActivatedRoute,
|
||||
private router: Router) {
|
||||
this.route.data.subscribe((data: { passwordPreferencesTemplate: any}) => {
|
||||
constructor(
|
||||
private formBuilder: UntypedFormBuilder,
|
||||
private organizationService: OrganizationService,
|
||||
private route: ActivatedRoute,
|
||||
private router: Router
|
||||
) {
|
||||
this.route.data.subscribe((data: { passwordPreferencesTemplate: any }) => {
|
||||
this.passwordPreferencesData = data.passwordPreferencesTemplate;
|
||||
});
|
||||
}
|
||||
@@ -50,7 +51,7 @@ export class PasswordPreferencesComponent implements OnInit {
|
||||
*/
|
||||
createPasswordPreferencesForm() {
|
||||
this.passwordPreferencesForm = this.formBuilder.group({
|
||||
'validationPolicyId': ['']
|
||||
validationPolicyId: ['']
|
||||
});
|
||||
}
|
||||
|
||||
@@ -75,5 +76,4 @@ export class PasswordPreferencesComponent implements OnInit {
|
||||
this.router.navigate(['../'], { relativeTo: this.route });
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user