File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
eng/tools/typespec-validation/src Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import { SdkTspConfigValidationRule } from "./rules/sdk-tspconfig-validation.js"
1212import { 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
1717export 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
You can’t perform that action at this time.
0 commit comments