Skip to content

Commit 44ef765

Browse files
jeremymengCopilot
andcommitted
fix(dev-tool): resolve no-useless-assignment error under ESLint v10
ESLint v10's eslint:recommended enables the new no-useless-assignment rule. dev-tool uses a standalone eslint.config.mjs that applies @eslint/js recommended directly, so the warn-downgrade in the shared eslint-customized.ts config does not reach it and the rule fires as an error. Drop the redundant '= undefined' initializer on artifactURL (every code path reassigns or throws before it is read). Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: cf6320ed-d2d6-420c-8188-6a63a557ca4b
1 parent bf3318f commit 44ef765

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

common/tools/dev-tool/src/commands/samples/checkNodeVersions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ async function createDockerContextDirectory(
149149
}
150150
const envFileName = path.basename(envPath);
151151
await cp(samplesPath, path.join(dockerContextDirectory, "samples"), { recursive: true });
152-
let artifactURL: string | undefined = undefined;
152+
let artifactURL: string | undefined;
153153
try {
154154
await access(artifactPath);
155155
const artifactName = path.basename(artifactPath);

0 commit comments

Comments
 (0)