From 16579fd1fffa4dea7417acb034f4e96147f5bc89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Romaszkin?= Date: Mon, 15 Jun 2020 23:12:53 +0200 Subject: [PATCH] Update tslint config --- frontend/src/app/view/view-data/view-data.component.ts | 2 +- frontend/tslint.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/view/view-data/view-data.component.ts b/frontend/src/app/view/view-data/view-data.component.ts index acd09dd..ae2bfee 100644 --- a/frontend/src/app/view/view-data/view-data.component.ts +++ b/frontend/src/app/view/view-data/view-data.component.ts @@ -72,7 +72,7 @@ export class ViewDataComponent implements OnInit, AfterViewInit { tempNames = await this.parsedData(file); this.temp = this.temp.map((item) => { - let index = tempNames.findIndex((data) => data.id === item.author); + const index = tempNames.findIndex((data) => data.id === item.author); item.author = index !== -1 ? tempNames[index].name : item.author; return item; }); diff --git a/frontend/tslint.json b/frontend/tslint.json index 45dc79b..6d53027 100644 --- a/frontend/tslint.json +++ b/frontend/tslint.json @@ -1,6 +1,7 @@ { "extends": ["tslint:recommended", "tslint-config-prettier"], "rules": { + "only-arrow-functions": false, "align": { "options": ["parameters", "statements"] }, @@ -44,11 +45,11 @@ "object-literal-key-quotes": [true, "as-needed"], "quotemark": [true, "single"], "semicolon": { - "options": ["always"] + "options": ["always", "ignore-bound-class-methods"] }, "space-before-function-paren": { "options": { - "anonymous": "never", + "anonymous": "always", "asyncArrow": "always", "constructor": "never", "method": "never",