@@ -13,7 +13,7 @@ const extractProperties = (content: string) => {
1313 const endOfPropertiesLineNumber = lines . findIndex (
1414 ( line , index ) =>
1515 line . startsWith ( endOfPropertiesMark ) &&
16- index > startOfPropertiesLineNumber
16+ index > startOfPropertiesLineNumber ,
1717 ) ;
1818
1919 if ( startOfPropertiesLineNumber === - 1 ) {
@@ -24,24 +24,24 @@ const extractProperties = (content: string) => {
2424 ( _ , lineNumber ) =>
2525 lineNumber > startOfPropertiesLineNumber &&
2626 ( endOfPropertiesLineNumber === - 1 ||
27- lineNumber < endOfPropertiesLineNumber )
27+ lineNumber < endOfPropertiesLineNumber ) ,
2828 ) ;
2929} ;
3030
3131const insertGeneratedParts = (
3232 fileContent : string ,
33- generatedContent : string [ ]
33+ generatedContent : string [ ] ,
3434) => {
3535 generatedContent = generatedContent . map ( ( l ) =>
36- l . replace ( / • \s / g, '' ) . replace ( / ▸ \s / g, '' )
36+ l . replace ( / • \s / g, '' ) . replace ( / ▸ \s / g, '' ) ,
3737 ) ;
3838 const lines : string [ ] = fileContent . split ( '\n' ) ;
3939 const startOfGeneratedContentLineNumber = lines . indexOf (
40- startOfGeneratedContentMark
40+ startOfGeneratedContentMark ,
4141 ) ;
4242 const result = [
4343 ...lines . splice ( 0 , startOfGeneratedContentLineNumber + 1 ) ,
44- generatedContent . length ? '## Inputs and outputs \n' : '\n' ,
44+ generatedContent . length ? '\n ## Inputs and outputs\n' : '\n' ,
4545 ...generatedContent ,
4646 ...lines . splice ( 0 ) ,
4747 ] ;
@@ -70,7 +70,7 @@ fs.readdir(generatedDocsPath, (err: any, files: string[]) => {
7070 ( err : any , docFile : any ) => {
7171 if ( err )
7272 throw new Error (
73- `${ componentDocsPath } /${ file } couldn't be opened, error: ${ err } , make sure that this file exists`
73+ `${ componentDocsPath } /${ file } couldn't be opened, error: ${ err } , make sure that this file exists` ,
7474 ) ;
7575
7676 if ( file !== '_category_.json' ) {
@@ -82,12 +82,12 @@ fs.readdir(generatedDocsPath, (err: any, files: string[]) => {
8282 'utf8' ,
8383 ( err : any ) => {
8484 if ( err ) throw err ;
85- }
85+ } ,
8686 ) ;
8787 }
88- }
88+ } ,
8989 ) ;
90- }
90+ } ,
9191 ) ;
9292 } ) ;
9393} ) ;
0 commit comments