From b20b384cfb828f0192c53c9238e0a382b7df390b Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Fri, 7 Feb 2025 21:02:47 +0100 Subject: [PATCH] chore(tests): lint-fix (#34091) --- lib/workers/repository/process/libyear.spec.ts | 2 +- tools/test-shards.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/workers/repository/process/libyear.spec.ts b/lib/workers/repository/process/libyear.spec.ts index bf30b5ab9f..3cbdb77fb8 100644 --- a/lib/workers/repository/process/libyear.spec.ts +++ b/lib/workers/repository/process/libyear.spec.ts @@ -179,7 +179,7 @@ describe('workers/repository/process/libyear', () => { npm: 1, regex: 1, }, - // eslint-disable-next-line no-loss-of-precision + totalLibYears: 2, totalDepsCount: 2, outdatedDepsCount: 2, diff --git a/tools/test-shards.ts b/tools/test-shards.ts index 0de5287c4a..3d2ed4d30e 100644 --- a/tools/test-shards.ts +++ b/tools/test-shards.ts @@ -61,13 +61,11 @@ if (process.env.FILTER_SHARDS === 'true' && process.env.CHANGED_FILES) { const changedFiles: string[] = JSON.parse(process.env.CHANGED_FILES); const matchingShards = getMatchingShards(changedFiles); if (matchingShards.length === 0) { - // eslint-disable-next-line no-console console.log(`test-matrix-empty=true`); process.exit(0); } shardKeys = shardKeys.filter((key) => matchingShards.includes(key)); } catch (err) { - // eslint-disable-next-line no-console console.error(err); process.exit(1); } @@ -141,5 +139,5 @@ for (const [os, groups] of Object.entries(shardGrouping)) { /** * Output will be consumed by `setup` CI job. */ -// eslint-disable-next-line no-console + console.log(`test-shard-matrix=${JSON.stringify(shardGroups)}`); -- GitLab