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); tempNames = await this.parsedData(file);
this.temp = this.temp.map((item) => { 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; item.author = index !== -1 ? tempNames[index].name : item.author;
return item; return item;
}); });

View File

@ -1,6 +1,7 @@
{ {
"extends": ["tslint:recommended", "tslint-config-prettier"], "extends": ["tslint:recommended", "tslint-config-prettier"],
"rules": { "rules": {
"only-arrow-functions": false,
"align": { "align": {
"options": ["parameters", "statements"] "options": ["parameters", "statements"]
}, },
@ -44,11 +45,11 @@
"object-literal-key-quotes": [true, "as-needed"], "object-literal-key-quotes": [true, "as-needed"],
"quotemark": [true, "single"], "quotemark": [true, "single"],
"semicolon": { "semicolon": {
"options": ["always"] "options": ["always", "ignore-bound-class-methods"]
}, },
"space-before-function-paren": { "space-before-function-paren": {
"options": { "options": {
"anonymous": "never", "anonymous": "always",
"asyncArrow": "always", "asyncArrow": "always",
"constructor": "never", "constructor": "never",
"method": "never", "method": "never",