fix(types): turn on noUnusedLocals and drop the unused declarations (12-12)

VD-01 decision 3 hands unused diagnostics to tsc and turns off ESLint's
no-unused-vars for TS files, but tsconfig.base.json never enabled the
tsc check (D-19). The flag found 46 unused imports, types and helpers
across 22 files; none of them were read, so removing them changes no
behaviour.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
donghyeon-ka
2026-09-27 13:32:33 +09:00
co-authored by Claude Opus 5.5
parent 2c5e268bad
commit 49413af045
23 changed files with 4 additions and 78 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { access, readFile } from "node:fs/promises";
import { readFile } from "node:fs/promises";
/**
* GOV-03. Joins the machine-readable remediation dispositions against the prose
-1
View File
@@ -12,7 +12,6 @@ import type { InstalledContractPackageIdentity } from "../src/contracts/external
import {
parseReleaseArtifact,
parseRuntimeConfigArtifact,
type ReleaseArtifact,
} from "../src/contracts/release-artifacts.ts";
import { projectTelemetryEvent } from "../src/contracts/telemetry.ts";
import { EXPECTED_CONTRACT_SET_PACKAGES } from "../src/features/installed-contract-contributions.ts";
-4
View File
@@ -66,10 +66,6 @@ async function jsonDocument(file: string): Promise<Document> {
return documentValue(parsed, file);
}
async function sha256File(file: string): Promise<string> {
return createHash("sha256").update(await readFile(file)).digest("hex");
}
async function optionalJson(file: string): Promise<Document | null> {
try {
const parsed: unknown = JSON.parse(await readFile(file, "utf8"));
-1
View File
@@ -4,7 +4,6 @@ import { constants } from "node:fs";
import type { FileHandle } from "node:fs/promises";
import {
lstat,
mkdir,
open,
readFile,
readdir,
-1
View File
@@ -88,7 +88,6 @@ const fixturesDocument = parseFixturesDocument(
const verifiedRuntime = await verifyReleaseArtifactsCoherence();
const {
release,
runtime: runtimeConfig,
coherence: artifactComparison,
} = verifiedRuntime;
const buildManifestDocument: unknown = JSON.parse(