Skip to content

Commit 8ba4562

Browse files
committed
Fix yarn linting errors
1 parent 927b4c7 commit 8ba4562

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

src/utils/githubApiCache.mts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// TODO: put defaults into json file, to prevent need for these disables
2+
/* eslint-disable max-len */
3+
/* eslint-disable @typescript-eslint/naming-convention */
14
import type { ExtensionContext, Memento } from "vscode";
25
import { type GithubReleaseResponse, GithubRepository } from "./githubREST.mjs";
36
import Logger from "../logger.mjs";
@@ -30,12 +33,12 @@ function defaultCacheOfRepository(
3033
repository: GithubRepository,
3134
dataType: GithubApiCacheEntryDataType
3235
): GithubApiCacheEntry {
33-
let ret: GithubApiCacheEntry = {
36+
const ret: GithubApiCacheEntry = {
3437
repository: repository,
3538
dataType: dataType,
3639
data: [],
3740
etag: "",
38-
}
41+
};
3942
switch (repository) {
4043
case GithubRepository.picoSDK:
4144
if (dataType === GithubApiCacheEntryDataType.releases) {
@@ -75,7 +78,7 @@ function defaultCacheOfRepository(
7578
},
7679
],
7780
assetsUrl: 'https://api.github.com/repos/Kitware/CMake/releases/132188415/assets',
78-
} as GithubReleaseResponse
81+
} as GithubReleaseResponse;
7982
}
8083
break;
8184
case GithubRepository.ninja:
@@ -111,7 +114,7 @@ function defaultCacheOfRepository(
111114
}
112115
],
113116
assetsUrl: 'https://api.github.com/repos/ninja-build/ninja/releases/155357494/assets'
114-
} as GithubReleaseResponse
117+
} as GithubReleaseResponse;
115118
}
116119
break;
117120
case GithubRepository.tools:
@@ -137,7 +140,7 @@ function defaultCacheOfRepository(
137140
}
138141
],
139142
assetsUrl: 'https://api.github.com/repos/will-v-pi/pico-sdk-tools/releases/134896110/assets'
140-
} as GithubReleaseResponse
143+
} as GithubReleaseResponse;
141144
}
142145
break;
143146
case GithubRepository.openocd:
@@ -178,7 +181,7 @@ function defaultCacheOfRepository(
178181
}
179182
],
180183
assetsUrl: 'https://api.github.com/repos/xpack-dev-tools/openocd-xpack/releases/119866462/assets'
181-
} as GithubReleaseResponse
184+
} as GithubReleaseResponse;
182185
}
183186
break;
184187
}

0 commit comments

Comments
 (0)