Enable no-unsafe-return rule

This commit is contained in:
Henry Mercer 2024-06-13 19:52:39 +01:00
parent 2f54d9fcfa
commit 1ea11ca775
16 changed files with 30 additions and 26 deletions

View file

@ -435,7 +435,9 @@ class GitHubFeatureFlags {
this.logger.debug(
`Loading feature flags from ${this.featureFlagsFile}`,
);
return JSON.parse(fs.readFileSync(this.featureFlagsFile, "utf8"));
return JSON.parse(
fs.readFileSync(this.featureFlagsFile, "utf8"),
) as GitHubFeatureFlagsApiResponse;
}
} catch (e) {
this.logger.warning(