Skip to content

Commit

Permalink
Fix yarn linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
will-v-pi committed Jun 27, 2024
1 parent 927b4c7 commit 8ba4562
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/utils/githubApiCache.mts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// TODO: put defaults into json file, to prevent need for these disables
/* eslint-disable max-len */
/* eslint-disable @typescript-eslint/naming-convention */
import type { ExtensionContext, Memento } from "vscode";
import { type GithubReleaseResponse, GithubRepository } from "./githubREST.mjs";
import Logger from "../logger.mjs";
Expand Down Expand Up @@ -30,12 +33,12 @@ function defaultCacheOfRepository(
repository: GithubRepository,
dataType: GithubApiCacheEntryDataType
): GithubApiCacheEntry {
let ret: GithubApiCacheEntry = {
const ret: GithubApiCacheEntry = {
repository: repository,
dataType: dataType,
data: [],
etag: "",
}
};
switch (repository) {
case GithubRepository.picoSDK:
if (dataType === GithubApiCacheEntryDataType.releases) {
Expand Down Expand Up @@ -75,7 +78,7 @@ function defaultCacheOfRepository(
},
],
assetsUrl: 'https://api.github.com/repos/Kitware/CMake/releases/132188415/assets',
} as GithubReleaseResponse
} as GithubReleaseResponse;
}
break;
case GithubRepository.ninja:
Expand Down Expand Up @@ -111,7 +114,7 @@ function defaultCacheOfRepository(
}
],
assetsUrl: 'https://api.github.com/repos/ninja-build/ninja/releases/155357494/assets'
} as GithubReleaseResponse
} as GithubReleaseResponse;
}
break;
case GithubRepository.tools:
Expand All @@ -137,7 +140,7 @@ function defaultCacheOfRepository(
}
],
assetsUrl: 'https://api.github.com/repos/will-v-pi/pico-sdk-tools/releases/134896110/assets'
} as GithubReleaseResponse
} as GithubReleaseResponse;
}
break;
case GithubRepository.openocd:
Expand Down Expand Up @@ -178,7 +181,7 @@ function defaultCacheOfRepository(
}
],
assetsUrl: 'https://api.github.com/repos/xpack-dev-tools/openocd-xpack/releases/119866462/assets'
} as GithubReleaseResponse
} as GithubReleaseResponse;
}
break;
}
Expand Down

0 comments on commit 8ba4562

Please sign in to comment.