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

@@ -17,9 +17,7 @@ export function extractModelDirective(
/(?:^|\s)\/models?(?=$|\s|:)\s*:?\s*([A-Za-z0-9_.:@-]+(?:\/[A-Za-z0-9_.:@-]+)?)?/i,
);
const aliases = (options?.aliases ?? [])
.map((alias) => alias.trim())
.filter(Boolean);
const aliases = (options?.aliases ?? []).map((alias) => alias.trim()).filter(Boolean);
const aliasMatch =
modelMatch || aliases.length === 0
? null
@@ -41,9 +39,7 @@ export function extractModelDirective(
rawProfile = parts.slice(1).join("@").trim() || undefined;
}
const cleaned = match
? body.replace(match[0], " ").replace(/\s+/g, " ").trim()
: body.trim();
const cleaned = match ? body.replace(match[0], " ").replace(/\s+/g, " ").trim() : body.trim();
return {
cleaned,