Migrate to ESLint 9 flat config (#239)

* eslint 9

* fix lint errors

* update package-lock.json
This commit is contained in:
tmshv authored and GitHub committed 2026-02-08 01:29:39 +07:00
1 parent d9d8bbebe1
commit a4b3068850
9 files changed
+5830 -5854

No files matched your search

+2 -2
View File
@@ -77,7 +77,7 @@ export async function createPageToken(component: StrapiComponent): Promise<Token
case "hudozka.card-grid": {
const items = await Promise.all(component.items
.filter(Boolean)
.map(createCardGrid)
.map(createCardGrid),
)
return {
token: "grid",
@@ -208,7 +208,7 @@ export async function createCardGrid(card: StrapiPageCard): Promise<PageCardDto>
export async function createHomeCards(data: StrapiHome): Promise<PageCardDto[]> {
const items = await Promise.all(data.cards
.map(createCardGrid)
.map(createCardGrid),
)
return items
.filter(x => !!x.url)