Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const server = serve(
info => {
const initMessage = "\x1b[34m[VitNode]\x1b[0m";

// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.log(
`${initMessage} API server is running on http://localhost:${info.port}`,
);
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/docs/markdown-negotiation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const markdownNegotiationMiddleware = createMiddleware().server(
.filter(Boolean)
url.pathname = encodeMarkdownUrl(slugs)

// eslint-disable-next-line @typescript-eslint/only-throw-error
// oxlint-disable-next-line typescript/only-throw-error
throw redirect({ headers: { Vary: 'Accept' }, href: url.href })
},
)
2 changes: 1 addition & 1 deletion apps/web/src/docs/transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const getDocsPage = createServerFn({ method: 'GET' })
.handler(({ data: slugs }) => {
const page = source.getPage(slugs)

// eslint-disable-next-line @typescript-eslint/only-throw-error
// oxlint-disable-next-line typescript/only-throw-error
if (!page) throw notFound()

const ancestors = getBreadcrumbItems(page.url, source.getPageTree(), {})
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/routes/_docs/docs.index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createFileRoute, redirect } from '@tanstack/react-router'

export const Route = createFileRoute('/_docs/docs/')({
beforeLoad: () => {
// eslint-disable-next-line @typescript-eslint/only-throw-error
// oxlint-disable-next-line typescript/only-throw-error
throw redirect({ params: { _splat: 'dev' }, to: '/docs/$' })
},
})
2 changes: 1 addition & 1 deletion apps/web/src/routes/_main/solutions/$slug.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const headFor = (slug: string) => {

export const Route = createFileRoute('/_main/solutions/$slug')({
loader: ({ params }) => {
// eslint-disable-next-line @typescript-eslint/only-throw-error
// oxlint-disable-next-line typescript/only-throw-error
if (!findSolutionEntry(params.slug)) throw notFound()

return { slug: params.slug }
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/scripts/cli/ui/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const createPalette = (enabled: boolean): Palette => {
};
};

// eslint-disable-next-line no-control-regex
// oxlint-disable-next-line no-control-regex
const ANSI_PATTERN = /\x1b\[[0-9;?]*[A-Za-z]/g;

export const stripAnsi = (text: string): string =>
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/scripts/get-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export async function getConfig<T extends ConfigName = "config">({
interopDefault: true,
});

// eslint-disable-next-line @typescript-eslint/no-explicit-any
// oxlint-disable-next-line typescript/no-explicit-any
const loaded = (await jiti.import(configPath)) as any;
const config = loaded[configVarName];

Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/scripts/prepare-database.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable no-console */
/* oxlint-disable no-console */
import { count, sql } from "drizzle-orm";
import { migrate } from "drizzle-orm/postgres-js/migrator";
import { createJiti } from "jiti";
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/api/adapters/events/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const LocalEventsAdapter = (): EventsApiPlugin => ({
try {
await c.get("log").error(message);
} catch {
// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.error(
`[VitNode] Failed to log event listener failure: ${message}`,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/api/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export function VitNodeAPI({

registerCronJobs(vitNodeApiConfig.dbProvider, collectCronJobs(plugins)).catch(
(error: unknown) => {
// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.warn(
`\x1b[34m[VitNode]\x1b[0m \x1b[33mFailed to register cron jobs:\x1b[0m ${describeError(error)}`,
);
Expand Down
4 changes: 2 additions & 2 deletions packages/vitnode/src/api/lib/ai/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface AiActionDefaults {

export type AiActionOutputMode = "object" | "text";

/* eslint-disable @typescript-eslint/method-signature-style -- method
/* oxlint-disable typescript/method-signature-style -- method
signatures are bivariant, which keeps a typed action assignable to the
registry's `AnyAiActionDefinition`. */
interface AiActionDefinitionBase<
Expand Down Expand Up @@ -93,7 +93,7 @@ export interface AiObjectActionDefinition<
output: "object";
}

/* eslint-enable @typescript-eslint/method-signature-style */
/* oxlint-enable typescript/method-signature-style */

export type AiActionDefinition<
Id extends string = string,
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/api/lib/cron.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function collectCronJobs(
}

const reportFailedCronTick = (reason: string) => {
// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.error(
`\x1b[34m[VitNode]\x1b[0m \x1b[31mCron tick failed\x1b[0m: ${reason}`,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/api/lib/logger-middleware.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable no-console */
/* oxlint-disable no-console */
import type { Context } from "hono";

import { core_logs } from "@/database/logs";
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/api/lib/notifications/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export interface NotificationTypeDefinition<TData = Record<string, unknown>> {
}

export type AnyNotificationTypeDefinition =
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// oxlint-disable-next-line typescript/no-explicit-any
NotificationTypeDefinition<any>;

export interface RegisteredNotificationType {
Expand Down
4 changes: 2 additions & 2 deletions packages/vitnode/src/api/lib/notifications/safe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const safeNotificationTarget = (target: unknown): null | string => {
if (target.length === 0 || target.length > MAX_TARGET_LENGTH) return null;
if (!target.startsWith("/")) return null;
if (target.startsWith("//") || target.startsWith("/\\")) return null;
// eslint-disable-next-line no-control-regex
// oxlint-disable-next-line no-control-regex
if (/[\u0000-\u001f\u007f\\]/.test(target)) return null;

try {
Expand All @@ -26,7 +26,7 @@ export const plainNotificationText = (value: unknown): string => {

return (
value
// eslint-disable-next-line no-control-regex
// oxlint-disable-next-line no-control-regex
.replace(/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]/g, "")
.replace(/\s+/g, " ")
.trim()
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/api/lib/with-pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ type PaginationIdentifierDataType =
| `number ${ColumnDataNumberConstraint}`;

export type PaginationCursorColumn = PgColumn<
// eslint-disable-next-line @typescript-eslint/no-explicit-any
// oxlint-disable-next-line typescript/no-explicit-any
any,
PgColumnBaseConfig<PaginationIdentifierDataType>
>;
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/api/middlewares/global.middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ import { resolvePasskeysConfig } from "../lib/passkey-config";
import { normalizePermissionStaffModules } from "../lib/permission-staff";

declare module "hono" {
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
// oxlint-disable-next-line typescript/no-empty-object-type
interface ContextVariableMap extends EnvVariablesVitNode {}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/api/models/email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface EmailApiPlugin {
subject: string;
text: string;
to: string;
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
// oxlint-disable-next-line typescript/no-invalid-void-type
}) => Promise<EmailSendResult | void>;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ describePostgres("notification fan-out with 1,000 recipients", () => {
expect(accessCalls).toBeLessThanOrEqual(batchesPerWorker * 2 + 4);
expect(fanoutQueries).toBeLessThan(RECIPIENTS);

// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.info(
`[1,000 recipients] publish ${publishMs.toFixed(0)} ms, fan-out ${fanoutMs.toFixed(0)} ms, ${fanoutQueries} queries for ${expected} recipients, ${accessCalls} access checks`,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/api/models/passkey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export class PasskeyModel {
private warnInDevelopment(ceremony: PasskeyCeremony, error: unknown) {
if (!CONFIG.node_development) return;

// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.warn(
`\x1b[34m[VitNode]\x1b[0m \x1b[33mPasskey ${ceremony} failed:\x1b[0m ${describeError(error)}`,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/api/models/sso-connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export class SsoConnectionModel {
private warn(step: string, error: unknown) {
if (!CONFIG.node_development) return;

// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.warn(
`\x1b[34m[VitNode]\x1b[0m \x1b[33mSSO connection ${step} failed:\x1b[0m ${describeError(error)}`,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/api/models/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class StorageModel {
try {
const { default: s } = await import("sharp");
sharp = s;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
} catch (err) {
throw new HTTPException(500, {
message:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const clearSearchDebugAdminRoute = buildRoute({
try {
await c.get("log").warn(message);
} catch {
// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.warn(
`[VitNode] Failed to persist search cleanup audit: ${message}`,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function processCronJobs(

for (const job of cronJobs) {
if (!validateCronSchedule(job.schedule)) {
// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.warn(
`\x1b[34m[VitNode]\x1b[0m \x1b[33mInvalid cron schedule for job "${job.pluginId}:${job.module}:${job.name}"\x1b[0m: ${job.schedule}`,
);
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/blocks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export const EditablePage = ({

useEffect(() => {
if (openedRef.current) return;
// eslint-disable-next-line react-you-might-not-need-an-effect/no-event-handler
// oxlint-disable-next-line react-you-might-not-need-an-effect/no-event-handler
if (!start || !offer.canEdit || openEditing !== true) return;

openedRef.current = true;
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/blocks/renderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const warn = (seen: null | Set<string>, key: string, message: string): void => {
if (!seen || seen.has(key)) return;

seen.add(key);
// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.warn(`\x1b[34m[VitNode]\x1b[0m \x1b[33m${message}\x1b[0m`);
};

Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/components/date-format.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const DateFormat = ({
updateInterval:
updateInterval ??
// Update it every 1 minute if the date is from today, otherwise don't update
// eslint-disable-next-line react-hooks/purity, @eslint-react/purity
// oxlint-disable-next-line react/purity, @eslint-react/purity
(Date.now() - dateToFormat.getTime() < 86400000 ? 60000 : 0),
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function AsyncPicker<TOption extends AsyncPickerOption>({
// A search that fails is an empty list plus a console line, never a
// thrown error: this sits inside a form, and taking the page down
// because a lookup timed out loses whatever else was typed.
// eslint-disable-next-line no-console
// oxlint-disable-next-line no-console
console.error(error);
setOptions([]);
} finally {
Expand Down
6 changes: 3 additions & 3 deletions packages/vitnode/src/components/form/fields/cascader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export const AutoFormCascader = ({
options,
onValueChange,
showClear,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
itemParams,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
multiLang,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
children,
...props
}: ItemAutoFormComponentProps &
Expand Down
4 changes: 2 additions & 2 deletions packages/vitnode/src/components/form/fields/checkbox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export const AutoFormCheckbox = ({
otherProps: { isOptional },
field,
className,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
itemParams,
// Only the language-aware inputs implement this - dropped here so it never
// lands on the DOM element the rest props spread into.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
multiLang,
...props
}: ItemAutoFormComponentProps &
Expand Down
4 changes: 2 additions & 2 deletions packages/vitnode/src/components/form/fields/color.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ export const AutoFormColor = ({
description,
otherProps: { isOptional },
field,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
itemParams,
// Only the language-aware inputs implement this - dropped here so it never
// lands on the DOM element the rest props spread into.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
multiLang,
...props
}: ItemAutoFormComponentProps &
Expand Down
4 changes: 2 additions & 2 deletions packages/vitnode/src/components/form/fields/combobox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,11 +325,11 @@ const toComboboxValue = <Value,>(
export const AutoFormCombobox = ({
label,
field,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
itemParams,
// Only the language-aware inputs implement this - dropped here so it never
// lands on the DOM element the rest props spread into.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
multiLang,
description,
placeholder,
Expand Down
6 changes: 3 additions & 3 deletions packages/vitnode/src/components/form/fields/date-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ export const AutoFormDatePicker = ({
field,
onChange,
allowClear,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
itemParams,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
multiLang,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
children,
otherProps: { isOptional },
...props
Expand Down
4 changes: 2 additions & 2 deletions packages/vitnode/src/components/form/fields/date-time.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export const AutoFormDateTime = ({
labelRight,
description,
field,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
itemParams,
// Only the language-aware inputs implement this - dropped here so it never
// lands on the DOM element the rest props spread into.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
multiLang,
otherProps: { clearsToEmpty, isOptional },
...props
Expand Down
2 changes: 1 addition & 1 deletion packages/vitnode/src/components/form/fields/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export const AutoFormEditor = ({
description,
otherProps: { isOptional },
field,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
itemParams,
multiLang,
...props
Expand Down
4 changes: 2 additions & 2 deletions packages/vitnode/src/components/form/fields/emoji-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export const AutoFormEmojiIcon = ({
description,
otherProps: { isOptional },
field,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
itemParams,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
multiLang,
...props
}: ItemAutoFormComponentProps &
Expand Down
4 changes: 2 additions & 2 deletions packages/vitnode/src/components/form/fields/file.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,9 @@ export const AutoFormFile = ({
otherProps: { isOptional },
// Only the language-aware inputs implement this - dropped here so it never
// lands on the DOM element below. A file is never localized.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
multiLang,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
itemParams,
}: AutoFormFileProps) => {
const t = useTranslations("core.global.file");
Expand Down
4 changes: 2 additions & 2 deletions packages/vitnode/src/components/form/fields/files.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ export const AutoFormFiles = ({
otherProps: { isOptional },
// Only the language-aware inputs implement this - dropped here so it never
// lands on the DOM element below. A file is never localized.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
multiLang,
// eslint-disable-next-line @typescript-eslint/no-unused-vars
// oxlint-disable-next-line no-unused-vars
itemParams,
}: AutoFormFilesProps) => {
const t = useTranslations("core.global.file");
Expand Down
Loading
Loading