chore(deps): update dependency @antfu/eslint-config to v3 (#2984)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: TAKAHASHI Shuuji <shuuji3@gmail.com>
This commit is contained in:
renovate[bot] 2024-09-30 17:11:56 +09:00 committed by GitHub
parent 97826c00bc
commit 320ddc0e28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
65 changed files with 359 additions and 523 deletions

View file

@ -1,7 +1,7 @@
import type { PngOptions, ResizeOptions } from 'sharp'
import { rm, writeFile } from 'node:fs/promises'
import process from 'node:process'
import { resolve } from 'pathe'
import type { PngOptions, ResizeOptions } from 'sharp'
import sharp from 'sharp'
import ico from 'sharp-ico'
@ -103,7 +103,8 @@ async function generateTransparentIcons(icons: ResolvedIcons, svgLogo: string, f
Math.round(size * (1 - padding)),
Math.round(size * (1 - padding)),
resizeOptions,
).toBuffer(),
)
.toBuffer(),
}]).toFile(filePath)
await optimizePng(filePath, icons.png)
}))
@ -126,7 +127,8 @@ async function generateMaskableIcons(type: IconType, icons: ResolvedIcons, svgLo
Math.round(size * (1 - padding)),
Math.round(size * (1 - padding)),
resizeOptions,
).toBuffer(),
)
.toBuffer(),
}]).toFile(filePath)
await optimizePng(filePath, icons.png)
}))