Prettied, Linted and updated angular.json according to the latest schematic of Angular CLI.

Now all that is needed is to make it ready for strict compiling.
Removed eslint-plugin-prettier as it is not recommended and causes errors for both eslint and prettier

Bumped to v8.0.0
This commit is contained in:
2020-10-10 08:45:05 +05:30
parent 438a98334d
commit 5ea09df272
320 changed files with 2233 additions and 2268 deletions
@@ -1,8 +1,9 @@
import { Injectable } from '@angular/core';
import { ActivatedRouteSnapshot, Resolve, RouterStateSnapshot } from '@angular/router';
import { ActivatedRouteSnapshot, Resolve } from '@angular/router';
import { Observable } from 'rxjs/internal/Observable';
import { EmployeeAttendanceService } from './employee-attendance.service';
import { EmployeeAttendance } from './employee-attendance';
import { EmployeeAttendanceService } from './employee-attendance.service';
@Injectable({
providedIn: 'root',
@@ -10,10 +11,7 @@ import { EmployeeAttendance } from './employee-attendance';
export class EmployeeAttendanceResolver implements Resolve<EmployeeAttendance> {
constructor(private ser: EmployeeAttendanceService) {}
resolve(
route: ActivatedRouteSnapshot,
state: RouterStateSnapshot,
): Observable<EmployeeAttendance> {
resolve(route: ActivatedRouteSnapshot): Observable<EmployeeAttendance> {
const id = route.paramMap.get('id');
const startDate = route.queryParamMap.get('startDate') || null;
const finishDate = route.queryParamMap.get('finishDate') || null;