Skip to content

Commit ad5b9d5

Browse files
committed
[index.ts] var -> let, any -> unknown, suppress
1 parent 149f444 commit ad5b9d5

File tree

1 file changed

+3
-1
lines changed
  • eng/tools/typespec-validation/src

1 file changed

+3
-1
lines changed

eng/tools/typespec-validation/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { SdkTspConfigValidationRule } from "./rules/sdk-tspconfig-validation.js"
1212
import { fileExists, getSuppressions, normalizePath } from "./utils.js";
1313

1414
// Context argument may add new properties or override checkingAllSpecs
15-
export var context: Record<string, any> = { checkingAllSpecs: false };
15+
export let context: Record<string, unknown> = { checkingAllSpecs: false };
1616

1717
export async function main() {
1818
const args = process.argv.slice(2);
@@ -30,6 +30,8 @@ export async function main() {
3030
const folder = parsedArgs.positionals[0];
3131

3232
if (parsedArgs.positionals[1]) {
33+
// TODO: Use zod to validate context is object
34+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
3335
context = { ...context, ...JSON.parse(parsedArgs.positionals[1]) };
3436
}
3537

0 commit comments

Comments
 (0)