mirror of
https://github.com/hex248/sprint.git
synced 2026-02-08 10:33:01 +00:00
fixed all warnings :D
This commit is contained in:
@@ -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"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 || "",
|
||||
},
|
||||
});
|
||||
|
||||
@@ -17,6 +17,7 @@ export const testDB = async () => {
|
||||
console.log("db connected");
|
||||
} catch (err) {
|
||||
console.log("db down");
|
||||
console.error(err);
|
||||
process.exit();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user