Disallow and suppress unsafe assignment (#19736)

This commit is contained in:
Christian Gunderman
2026-02-20 22:28:55 +00:00
committed by GitHub
parent b746524a1b
commit 58d637f919
71 changed files with 149 additions and 22 deletions
@@ -35,6 +35,7 @@ export async function getExperiments(
const expPath = process.env['GEMINI_EXP'];
debugLogger.debug('Reading experiments from', expPath);
const content = await fs.promises.readFile(expPath, 'utf8');
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
const response: ListExperimentsResponse = JSON.parse(content);
if (
(response.flags && !Array.isArray(response.flags)) ||