@@ -124,7 +124,9 @@ function getMeta(data: Element['data'] | undefined): string | undefined {
124124 return typeof data . meta === 'string' ? data . meta : undefined ;
125125}
126126
127- function getDataObject ( data : Element [ 'data' ] | undefined ) : Record < string , unknown > {
127+ function getDataObject (
128+ data : Element [ 'data' ] | undefined
129+ ) : Record < string , unknown > {
128130 return isRecord ( data ) ? data : { } ;
129131}
130132
@@ -271,7 +273,9 @@ async function convertStaticToDynamic(code: string): Promise<string> {
271273 if ( hasCreateStaticNavigation ) {
272274 path . node . specifiers = specifiers . filter ( ( spec ) => {
273275 if ( ! t . isImportSpecifier ( spec ) ) return true ;
274- return getPropertyKeyName ( spec . imported ) !== 'createStaticNavigation' ;
276+ return (
277+ getPropertyKeyName ( spec . imported ) !== 'createStaticNavigation'
278+ ) ;
275279 } ) ;
276280
277281 if ( ! hasNavigationContainer ) {
@@ -406,14 +410,8 @@ async function convertStaticToDynamic(code: string): Promise<string> {
406410 const navigatorConstNames = new Map ( ) ; // Track usage of navigator constant names
407411
408412 navigatorInfos . forEach ( ( navigatorInfo ) => {
409- const {
410- componentName,
411- type,
412- config,
413- comments,
414- trailingComments,
415- index,
416- } = navigatorInfo ;
413+ const { componentName, type, config, comments, trailingComments, index } =
414+ navigatorInfo ;
417415
418416 const baseNavigatorConstName = deriveNavigatorConstName ( type ) ;
419417 const navigatorConstName = getUniqueNavigatorConstName (
@@ -428,10 +426,10 @@ async function convertStaticToDynamic(code: string): Promise<string> {
428426 const navigatorConstDeclaration : CommentedNode = t . variableDeclaration (
429427 'const' ,
430428 [
431- t . variableDeclarator (
432- t . identifier ( navigatorConstName ) ,
433- t . callExpression ( t . identifier ( type ) , [ ] )
434- ) ,
429+ t . variableDeclarator (
430+ t . identifier ( navigatorConstName ) ,
431+ t . callExpression ( t . identifier ( type ) , [ ] )
432+ ) ,
435433 ]
436434 ) ;
437435
0 commit comments