Update tslint config

This commit is contained in:
Michał Romaszkin 2020-06-15 23:12:53 +02:00
parent 7e28b5aee4
commit 16579fd1ff
2 changed files with 4 additions and 3 deletions

View File

@ -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;
});

View File

@ -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",