chore: ⬆️ Upgrade to Biome 2.0

This commit is contained in:
Jesse Wierzbinski 2025-04-10 19:15:31 +02:00
parent e7aec8752c
commit 963173cdae
No known key found for this signature in database
174 changed files with 412 additions and 379 deletions

View file

@ -1,3 +1,2 @@
// biome-ignore lint/performance/noBarrelFile: <explanation>
export { type Output, ResponseError } from "./versia/base.ts";
export { Client } from "./versia/client.ts";

View file

@ -32,7 +32,9 @@
}
],
"description": "Client for Mastodon and Versia API",
"categories": ["Other"],
"categories": [
"Other"
],
"type": "module",
"engines": {
"bun": ">=1.2.5"
@ -52,7 +54,13 @@
"url": "https://opencollective.com/lysand"
},
"homepage": "https://versia.pub",
"keywords": ["versia", "mastodon", "api", "typescript", "rest"],
"keywords": [
"versia",
"mastodon",
"api",
"typescript",
"rest"
],
"packageManager": "bun@1.2.5",
"dependencies": {
"@badgateway/oauth2-client": "^2.4.2"

View file

@ -1,10 +1,10 @@
// biome-ignore lint/performance/noBarrelFile: <explanation>
export { Account, Field, Source } from "./schemas/account.ts";
export { AccountWarning } from "./schemas/account-warning.ts";
export { Account, Source, Field } from "./schemas/account.ts";
export { Appeal } from "./schemas/appeal.ts";
export { Application, CredentialApplication } from "./schemas/application.ts";
export { Attachment } from "./schemas/attachment.ts";
export { PreviewCard, PreviewCardAuthor } from "./schemas/card.ts";
export { Id, iso631, zBoolean } from "./schemas/common.ts";
export { Context } from "./schemas/context.ts";
export { CustomEmoji } from "./schemas/emoji.ts";
export { ExtendedDescription } from "./schemas/extended-description.ts";
@ -15,10 +15,11 @@ export {
FilterResult,
FilterStatus,
} from "./schemas/filters.ts";
export { InstanceV1 } from "./schemas/instance-v1.ts";
export { Instance } from "./schemas/instance.ts";
export { InstanceV1 } from "./schemas/instance-v1.ts";
export { Marker } from "./schemas/marker.ts";
export { Notification } from "./schemas/notification.ts";
export { RolePermission } from "./schemas/permissions.ts";
export { Poll, PollOption } from "./schemas/poll.ts";
export { Preferences } from "./schemas/preferences.ts";
export { PrivacyPolicy } from "./schemas/privacy-policy.ts";
@ -30,15 +31,13 @@ export { Relationship } from "./schemas/relationship.ts";
export { Report } from "./schemas/report.ts";
export { Rule } from "./schemas/rule.ts";
export { Search } from "./schemas/search.ts";
export { Status, Mention, StatusSource } from "./schemas/status.ts";
export { Mention, Status, StatusSource } from "./schemas/status.ts";
export { Tag } from "./schemas/tag.ts";
export { Token } from "./schemas/token.ts";
export { TermsOfService } from "./schemas/tos.ts";
export {
Role,
NoteReaction,
SSOConfig,
Challenge,
NoteReaction,
Role,
SSOConfig,
} from "./schemas/versia.ts";
export { RolePermission } from "./schemas/permissions.ts";
export { Id, iso631, zBoolean } from "./schemas/common.ts";

View file

@ -1,5 +1,5 @@
import { userAddressValidator } from "@/api.ts";
import { z } from "zod";
import { userAddressValidator } from "@/api.ts";
import { config } from "~/config.ts";
import { iso631, zBoolean } from "./common.ts";
import { CustomEmoji } from "./emoji.ts";

View file

@ -1,5 +1,5 @@
import { emojiValidator } from "@/api.ts";
import { z } from "zod";
import { emojiValidator } from "@/api.ts";
import { config } from "~/config.ts";
import { Id, zBoolean } from "./common.ts";

View file

@ -1,6 +1,6 @@
import { z } from "zod";
import { AccountWarning } from "./account-warning.ts";
import { Account } from "./account.ts";
import { AccountWarning } from "./account-warning.ts";
import { Id } from "./common.ts";
import { Report } from "./report.ts";
import { Status } from "./status.ts";

View file

@ -1,4 +1,3 @@
// biome-ignore lint/correctness/noUndeclaredDependencies: biome is looking at the wrong package.json
import { OAuth2Client } from "@badgateway/oauth2-client";
import type { z } from "zod";
import type { Account } from "../schemas/account.ts";