fix: add prefer-array-some rule (#5109)

This commit is contained in:
LongYinan
2023-11-29 04:43:43 +00:00
parent 23cfc58fe2
commit d267029761
5 changed files with 7 additions and 6 deletions

View File

@@ -143,7 +143,7 @@ const ImagePreviewModalImpl = (
if (
page
.getPreviousSiblings(block)
.findLast(
.some(
(block): block is ImageBlockModel =>
block.flavour === 'affine:image'
)
@@ -160,7 +160,7 @@ const ImagePreviewModalImpl = (
} else if (
page
.getNextSiblings(block)
.find(
.some(
(block): block is ImageBlockModel =>
block.flavour === 'affine:image'
)