Update tslint config
This commit is contained in:
parent
7e28b5aee4
commit
16579fd1ff
@ -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;
|
||||||
});
|
});
|
||||||
|
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user