From 36d84a320196313e01546f0ec6e9312c2ccadc61 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Thu, 12 Dec 2024 16:45:47 -0500 Subject: [PATCH] Fix lint error from #40583 + #40578 (#40601) #40578 adjusted the eslint config and fixed existing errors, but #40583 snuck in just ahead of it adding a new instance of the error. --- projects/packages/jetpack-mu-wpcom/changelog/fix-lint-error | 5 +++++ .../features/starter-page-templates/page-patterns-plugin.tsx | 1 + 2 files changed, 6 insertions(+) create mode 100644 projects/packages/jetpack-mu-wpcom/changelog/fix-lint-error diff --git a/projects/packages/jetpack-mu-wpcom/changelog/fix-lint-error b/projects/packages/jetpack-mu-wpcom/changelog/fix-lint-error new file mode 100644 index 0000000000000..b43bcfcf41a05 --- /dev/null +++ b/projects/packages/jetpack-mu-wpcom/changelog/fix-lint-error @@ -0,0 +1,5 @@ +Significance: patch +Type: fixed +Comment: Fix lint error from #40583 + #40578 + + diff --git a/projects/packages/jetpack-mu-wpcom/src/features/starter-page-templates/page-patterns-plugin.tsx b/projects/packages/jetpack-mu-wpcom/src/features/starter-page-templates/page-patterns-plugin.tsx index 9d712bef5b6e9..3718dfd82cfcd 100644 --- a/projects/packages/jetpack-mu-wpcom/src/features/starter-page-templates/page-patterns-plugin.tsx +++ b/projects/packages/jetpack-mu-wpcom/src/features/starter-page-templates/page-patterns-plugin.tsx @@ -28,6 +28,7 @@ type CoreNuxPlaceholder = { * Recursively finds the Content block if any. * * @param blocks - The current blocks + * @return Block found, if any */ function findPostContentBlock( blocks: BlockInstance[] ): BlockInstance | null { for ( const block of blocks ) {