chore: migrate to oxlint and oxfmt

Co-authored-by: Christoph Nakazawa <christoph.pojer@gmail.com>
This commit is contained in:
Peter Steinberger
2026-01-14 14:31:43 +00:00
parent 912ebffc63
commit c379191f80
1480 changed files with 28608 additions and 43547 deletions

View File

@@ -13,10 +13,7 @@ type QRCodeConstructor = new (
};
const QRCode = QRCodeModule as unknown as QRCodeConstructor;
const QRErrorCorrectLevel = QRErrorCorrectLevelModule as Record<
string,
unknown
>;
const QRErrorCorrectLevel = QRErrorCorrectLevelModule as Record<string, unknown>;
function createQrMatrix(input: string) {
const qr = new QRCode(-1, QRErrorCorrectLevel.L);
@@ -84,9 +81,7 @@ function encodePngRgba(buffer: Buffer, width: number, height: number) {
}
const compressed = deflateSync(raw);
const signature = Buffer.from([
0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a,
]);
const signature = Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]);
const ihdr = Buffer.alloc(13);
ihdr.writeUInt32BE(width, 0);
ihdr.writeUInt32BE(height, 4);