Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
robingenz committed Jan 30, 2024
1 parent deaba3f commit 0c358cb
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 8 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"createDefaultProgram": true
},
"plugins": [
"@typescript-eslint",
"unicorn"
],
"extends": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ import { AuthenticationService } from '@app/core/authentication';
@Injectable({
providedIn: 'root',
})
export class AuthenticationGuard {
constructor(private readonly authenticationService: AuthenticationService, private readonly router: Router) {}
export class AuthenticationGuard {
constructor(
private readonly authenticationService: AuthenticationService,
private readonly router: Router,
) {}

public async canActivate(): Promise<boolean> {
const isAuthenticated = this.authenticationService.isAuthenticated();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import { Pipe, PipeTransform } from '@angular/core';
})
export class CanteenFoodLabelPipe implements PipeTransform {
public transform(value: string): string {
return value.replace(/,/gi, '<br>');
return value.replaceAll(/,/gi, '<br>');
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ import { DualisAuthService } from '../../services';
@Injectable({
providedIn: 'root',
})
export class DualisAuthGuard {
constructor(private readonly dualisAuthService: DualisAuthService, private readonly router: Router) {}
export class DualisAuthGuard {
constructor(
private readonly dualisAuthService: DualisAuthService,
private readonly router: Router,
) {}

public canActivate(): boolean {
const session = this.dualisAuthService.getSession();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ export class CalendarModalComponent implements OnInit {
private loadingElement: HTMLIonLoadingElement | undefined;
private eventsLoaded = false;

constructor(private readonly dialogService: DialogService, private readonly changeDetectorref: ChangeDetectorRef) {}
constructor(
private readonly dialogService: DialogService,
private readonly changeDetectorref: ChangeDetectorRef,
) {}

public ngOnInit(): void {
void this.showLoading();
Expand Down
5 changes: 4 additions & 1 deletion src/app/shared/components/fa-icon/fa-icon.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ import {
exports: [FontAwesomeModule],
})
export class FaIconModule {
constructor(private readonly library: FaIconLibrary, private readonly faConfig: FaConfig) {
constructor(
private readonly library: FaIconLibrary,
private readonly faConfig: FaConfig,
) {
library.addIcons(faCalendarAlt);
library.addIcons(faCalendarWeek);
library.addIcons(faCalendarDay);
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down

0 comments on commit 0c358cb

Please sign in to comment.