Switched from eslint and prettier to biome

This commit is contained in:
2025-10-20 15:21:17 +02:00
parent 66ad6c349a
commit 870825c5f2
15 changed files with 419 additions and 344 deletions

View File

@@ -1,17 +1,17 @@
// This file was automatically generated by Astro PocketBase.
import { defineMiddleware } from "astro:middleware";
import { helpersFrom } from "astro-pocketbase-continue";
import PocketBase from "pocketbase";
import { defineMiddleware } from 'astro:middleware'
import { helpersFrom } from 'astro-pocketbase-continue'
import PocketBase from 'pocketbase'
const middleware = defineMiddleware((context, next) => {
const pocketbase = new PocketBase(import.meta.env.PUBLIC_ASTRO_POCKETBASE_URL);
const { getRecord, getRecords } = helpersFrom({ pocketbase });
context.locals.pocketbase = pocketbase;
context.locals.getRecord = getRecord;
context.locals.getRecords = getRecords;
return next();
});
const pocketbase = new PocketBase(import.meta.env.PUBLIC_ASTRO_POCKETBASE_URL)
const { getRecord, getRecords } = helpersFrom({ pocketbase })
context.locals.pocketbase = pocketbase
context.locals.getRecord = getRecord
context.locals.getRecords = getRecords
return next()
})
// You should NOT change the exported name as it is used by the Astro PocketBase integration.
export { middleware as onRequest };
export { middleware as onRequest }