avoid usage of to*Case + add project lint rule

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-10-02 14:01:50 +02:00
parent 9697e91074
commit ca0559444c
25 changed files with 101 additions and 33 deletions
+3 -2
View File
@@ -61,9 +61,10 @@ export class BadgesClient implements BadgesApi {
private getEntityRouteParams(entity: Entity) {
return {
kind: entity.kind.toLowerCase(),
kind: entity.kind.toLocaleLowerCase('en-US'),
namespace:
entity.metadata.namespace?.toLowerCase() ?? ENTITY_DEFAULT_NAMESPACE,
entity.metadata.namespace?.toLocaleLowerCase('en-US') ??
ENTITY_DEFAULT_NAMESPACE,
name: entity.metadata.name,
};
}