From 66f431d3d3f3648ef505e24a60aa32225e8101a0 Mon Sep 17 00:00:00 2001 From: softsimon Date: Mon, 13 May 2024 17:16:28 +0700 Subject: [PATCH] Force curly if-statements --- backend/.eslintrc | 2 ++ frontend/.eslintrc | 1 + frontend/src/app/components/address/address.component.ts | 4 +++- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/.eslintrc b/backend/.eslintrc index 1b2889e50..c0f25066b 100644 --- a/backend/.eslintrc +++ b/backend/.eslintrc @@ -20,6 +20,7 @@ "@typescript-eslint/no-this-alias": 1, "@typescript-eslint/no-var-requires": 1, "@typescript-eslint/explicit-function-return-type": 1, + "@typescript-eslint/no-unused-vars": 1, "no-console": 1, "no-constant-condition": 1, "no-dupe-else-if": 1, @@ -32,6 +33,7 @@ "prefer-rest-params": 1, "quotes": [1, "single", { "allowTemplateLiterals": true }], "semi": 1, + "curly": [1, "all"], "eqeqeq": 1 } } diff --git a/frontend/.eslintrc b/frontend/.eslintrc index e2652c6c8..d47d4fe9b 100644 --- a/frontend/.eslintrc +++ b/frontend/.eslintrc @@ -34,6 +34,7 @@ "prefer-rest-params": 1, "quotes": [1, "single", { "allowTemplateLiterals": true }], "semi": 1, + "curly": [1, "all"], "eqeqeq": 1 } } diff --git a/frontend/src/app/components/address/address.component.ts b/frontend/src/app/components/address/address.component.ts index 0def6c8b7..9ef29b423 100644 --- a/frontend/src/app/components/address/address.component.ts +++ b/frontend/src/app/components/address/address.component.ts @@ -175,7 +175,9 @@ export class AddressComponent implements OnInit, OnDestroy { }); this.transactions = this.tempTransactions; - if (this.transactions.length === this.txCount) this.fullyLoaded = true; + if (this.transactions.length === this.txCount) { + this.fullyLoaded = true; + } this.isLoadingTransactions = false; if (!this.showBalancePeriod()) {