fix linting for line length
This commit is contained in:
parent
10fdd4b993
commit
cf2cd16689
|
@ -54,7 +54,8 @@ async function processDirectory(
|
|||
const categoryFolder = path.basename( subDirectory );
|
||||
const categoryTitle = categoryFolder
|
||||
.split( '-' )
|
||||
.map( ( slugPart ) => slugPart.charAt( 0 ).toUpperCase() + slugPart.slice( 1 ) )
|
||||
.map( ( slugPart ) =>
|
||||
slugPart.charAt( 0 ).toUpperCase() + slugPart.slice( 1 ) )
|
||||
.join( ' ' );
|
||||
category.category_slug = category.category_slug ?? categoryFolder;
|
||||
category.category_title = category.category_title ?? categoryTitle;
|
||||
|
|
Loading…
Reference in New Issue