From 43a46b65e135b3a14ccc663ec5d5874170f71488 Mon Sep 17 00:00:00 2001 From: ShahanaFarooqui Date: Tue, 5 Dec 2023 21:05:27 -0800 Subject: [PATCH] Lint fix --- .eslintrc.json | 5 +++-- angular.json | 3 ++- src/app/app.module.ts | 2 +- .../local-failed-transactions.component.ts | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 733bd61b..16496feb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -29,7 +29,7 @@ "@angular-eslint/sort-ngmodule-metadata-arrays": "off", "@angular-eslint/use-component-view-encapsulation": "off", "@angular-eslint/use-injectable-provided-in": "off", - "@typescript-eslint/member-delimiter-style": "off", + "@typescript-eslint/member-delimiter-style": "off", "@typescript-eslint/no-non-null-assertion": "off", "@typescript-eslint/type-annotation-spacing": 0, "quotes": ["error", "single"], @@ -181,7 +181,7 @@ "files": [ "*.html" ], - "parser": "@angular-eslint/template-parser", +"parser": "@angular-eslint/template-parser", "extends": [ "plugin:@angular-eslint/template/all", "plugin:@angular-eslint/template/recommended", @@ -205,6 +205,7 @@ "@angular-eslint/template/no-interpolation-in-attributes": "off", "@angular-eslint/template/no-positive-tabindex": "off", "@angular-eslint/template/prefer-ngsrc": "off", + "@angular-eslint/template/prefer-control-flow": "off", "@angular-eslint/template/use-track-by-function": "off" } } diff --git a/angular.json b/angular.json index 6f849c93..a6008454 100644 --- a/angular.json +++ b/angular.json @@ -115,12 +115,13 @@ "lint": { "builder": "@angular-eslint/builder:lint", "options": { + "eslintConfig": ".eslintrc.json", "lintFilePatterns": [ "src/**/*.ts", "src/**/*.html" ] } - } + } } } }, diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 9d4572e3..2fc88734 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -50,7 +50,7 @@ if (isDevMode()) { isDevEnvironemt = true; } } }), EffectsModule.forRoot([RTLEffects, LNDEffects, CLNEffects, ECLEffects]), - isDevEnvironemt ? StoreDevtoolsModule.instrument({connectInZone: true}) : [] + isDevEnvironemt ? StoreDevtoolsModule.instrument({ connectInZone: true }) : [] ], declarations: [AppComponent], providers: [ diff --git a/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts b/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts index 981be73a..e93204c4 100644 --- a/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts +++ b/src/app/cln/routing/local-failed-transactions/local-failed-transactions.component.ts @@ -89,7 +89,7 @@ export class CLNLocalFailedTransactionsComponent implements OnInit, AfterViewIni } this.totalLocalFailedTransactions = lffhSeletor.localFailedForwardingHistory.totalForwards || 0; this.failedLocalEvents = lffhSeletor.localFailedForwardingHistory.listForwards || []; - if (this.failedLocalEvents&& this.sort && this.paginator && this.displayedColumns.length > 0) { + if (this.failedLocalEvents && this.sort && this.paginator && this.displayedColumns.length > 0) { this.loadLocalfailedLocalEventsTable(this.failedLocalEvents); } this.logger.info(lffhSeletor);