fixed all warnings :D

This commit is contained in:
Oliver Bryan
2025-12-31 18:08:47 +00:00
parent 70ef02f790
commit 8b6dad8a2a
23 changed files with 138 additions and 145 deletions

View File

@@ -1,6 +1,6 @@
{
"root": false,
"$schema": "https://biomejs.dev/schemas/2.3.8/schema.json",
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
@@ -12,5 +12,8 @@
"parser": {
"tailwindDirectives": true
}
},
"files": {
"includes": ["**", "!drizzle/meta"]
}
}

View File

@@ -6,6 +6,6 @@ export default defineConfig({
schema: "../shared/src/schema.ts",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL!,
url: process.env.DATABASE_URL || "",
},
});

View File

@@ -17,6 +17,7 @@ export const testDB = async () => {
console.log("db connected");
} catch (err) {
console.log("db down");
console.error(err);
process.exit();
}
};

View File

@@ -1,7 +1,7 @@
import type { BunRequest } from "bun";
import { getIssues } from "../../db/queries";
export default async function issuesAll(req: BunRequest) {
export default async function issuesAll(_req: BunRequest) {
const issues = await getIssues();
return Response.json(issues);

View File

@@ -2,7 +2,7 @@ import type { BunRequest } from "bun";
import { getProjectsWithCreators } from "../../db/queries";
// /projects/all
export default async function projectsAll(req: BunRequest) {
export default async function projectsAll(_req: BunRequest) {
const projects = await getProjectsWithCreators();
return Response.json(projects);

View File

@@ -1,5 +1,5 @@
import type { BunRequest } from "bun";
import { getProjectByID, deleteProject } from "../../db/queries";
import { deleteProject, getProjectByID } from "../../db/queries";
// /project/delete?id=1
export default async function projectDelete(req: BunRequest) {

View File

@@ -2,7 +2,7 @@ import type { BunRequest } from "bun";
import { getProjectsWithCreators } from "../../db/queries";
// /projects/with-creators
export default async function projectsWithCreators(req: BunRequest) {
export default async function projectsWithCreators(_req: BunRequest) {
const projects = await getProjectsWithCreators();
return Response.json(projects);

View File

@@ -1,29 +1,29 @@
{
"compilerOptions": {
// Environment setup & latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "Preserve",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
"compilerOptions": {
// Environment setup & latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "Preserve",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
}