Merge pull request #3406 from backstage/orkohunter/fix-kubernetes-backend

fix(kubernetes-backend): Fix Typescript error stopping backend to start
This commit is contained in:
Ben Lambert
2020-11-24 11:13:18 +01:00
committed by GitHub
3 changed files with 8 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
New lint rule to disallow <type> assertions and promote `as` assertions. - @typescript-eslint/consistent-type-assertions
+1
View File
@@ -58,6 +58,7 @@ module.exports = {
],
'no-unused-expressions': 'off',
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/consistent-type-assertions': 'error',
'@typescript-eslint/no-unused-vars': [
'warn',
{
@@ -97,12 +97,12 @@ export const handleGetKubernetesObjectsForService: GetKubernetesObjectsForServic
return Promise.all(
clusterDetailsDecoratedForAuth.map(clusterDetails => {
return fetcher
.fetchObjectsForService(<ObjectFetchParams>{
.fetchObjectsForService({
serviceId,
clusterDetails,
objectTypesToFetch,
labelSelector,
})
} as ObjectFetchParams)
.then(result => {
return {
cluster: {