From 7ae844e402a5f9a6b0bdc5c68987ea47f60adf32 Mon Sep 17 00:00:00 2001 From: jacoblee93 Date: Tue, 30 Jul 2024 15:02:53 -0700 Subject: [PATCH] Format --- docs/core_docs/scripts/validate_notebook.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/core_docs/scripts/validate_notebook.ts b/docs/core_docs/scripts/validate_notebook.ts index b49caf0b0a2c..6f26d940be3a 100644 --- a/docs/core_docs/scripts/validate_notebook.ts +++ b/docs/core_docs/scripts/validate_notebook.ts @@ -17,18 +17,18 @@ export function extract(filepath: string) { const importDeclarations = sourceFile.getImportDeclarations(); const uniqueImports = new Map>(); - importDeclarations.forEach(importDecl => { + importDeclarations.forEach((importDecl) => { const moduleSpecifier = importDecl.getModuleSpecifierValue(); if (!uniqueImports.has(moduleSpecifier)) { uniqueImports.set(moduleSpecifier, new Set()); } - importDecl.getNamedImports().forEach(namedImport => { + importDecl.getNamedImports().forEach((namedImport) => { uniqueImports.get(moduleSpecifier)!.add(namedImport.getText()); }); }); // Remove all existing imports - importDeclarations.forEach(importDecl => importDecl.remove()); + importDeclarations.forEach((importDecl) => importDecl.remove()); // Add deduplicated imports at the top uniqueImports.forEach((namedImports, moduleSpecifier) => {