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,12 +1,13 @@
import { Component, Inject, OnInit } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms';
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
import { FormBuilder, FormGroup } from '@angular/forms';
import { Observable, of as observableOf } from 'rxjs';
import { debounceTime, distinctUntilChanged, map, startWith, switchMap } from 'rxjs/operators';
import { MathService } from '../shared/math.service';
import { Account } from '../core/account';
import { AccountService } from '../core/account.service';
import { MathService } from '../shared/math.service';
@Component({
selector: 'app-journal-dialog',
@@ -32,7 +33,7 @@ export class JournalDialogComponent implements OnInit {
ngOnInit() {
this.form.setValue({
debit: '' + this.data.journal.debit,
debit: `${this.data.journal.debit}`,
account: this.data.journal.account,
amount: this.data.journal.amount,
});
@@ -59,7 +60,7 @@ export class JournalDialogComponent implements OnInit {
);
}
displayAccount(account?: Account): string | undefined {
displayFn(account?: Account): string | undefined {
return account ? account.name : undefined;
}