Fixed lint errors and add lint fix script

This commit is contained in:
Giuseppe Digilio
2020-12-04 10:32:46 +01:00
parent 587affd064
commit 20b5721e3c
322 changed files with 759 additions and 752 deletions

View File

@@ -158,7 +158,7 @@ export class ItemDeleteComponent
*/
getRelationshipMessageKey(label: string): string {
if (hasValue(label) && label.indexOf('Of') > -1) {
return `relationships.${label.substring(0, label.indexOf('Of') + 2)}`
return `relationships.${label.substring(0, label.indexOf('Of') + 2)}`;
} else {
return label;
}
@@ -176,7 +176,7 @@ export class ItemDeleteComponent
map((isLeftItem) => isLeftItem ? relationshipType.leftwardType : relationshipType.rightwardType),
)
),
)
);
}
/**
@@ -267,7 +267,7 @@ export class ItemDeleteComponent
return {
metadataField: key,
metadataValue: metadata,
}
};
}))
.reduce((previous, current) => previous.concat(current))
),