refactor: 🚨 Turn every linter rule on and fix issues (there were a LOT :3)

This commit is contained in:
Jesse Wierzbinski 2024-06-12 16:26:43 -10:00
parent 2e98859153
commit a1e02d0d78
No known key found for this signature in database
177 changed files with 1826 additions and 1248 deletions

View file

@ -4,7 +4,7 @@ import type { z } from "zod";
import type { RolePermissions } from "~/drizzle/schema";
export type HttpVerb = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "OPTIONS";
export interface APIRouteMetadata {
export interface ApiRouteMetadata {
allowedMethods: HttpVerb[];
ratelimits: {
max: number;
@ -19,13 +19,13 @@ export interface APIRouteMetadata {
permissions?: {
required: RolePermissions[];
methodOverrides?: {
[key in HttpVerb]?: RolePermissions[];
[Key in HttpVerb]?: RolePermissions[];
};
};
}
export interface APIRouteExports {
meta: APIRouteMetadata;
export interface ApiRouteExports {
meta: ApiRouteMetadata;
schemas?: {
query?: z.AnyZodObject;
body?: z.AnyZodObject;