chore: add new lint script and apply consistent formatting across configs
Some checks failed
Lint / lint (push) Failing after 4m57s

Added `lint:write` script to streamline linting process and updated formatting in `drizzle.config.ts`
This commit is contained in:
Mathis HERRIOT
2026-01-05 15:59:55 +01:00
parent b22129c4dd
commit bfce5b2964
2 changed files with 18 additions and 17 deletions

View File

@@ -1,19 +1,19 @@
import { defineConfig } from 'drizzle-kit';
import { defineConfig } from "drizzle-kit";
import * as process from "node:process";
export default defineConfig({
schema: './src/database/schemas/index.ts',
out: '.migrations',
dialect: "postgresql",
casing: "snake_case",
dbCredentials: {
host: String(process.env.POSTGRES_HOST || "localhost"),
port: Number(process.env.POSTGRES_PORT || 5432),
database: String(process.env.POSTGRES_DB || "app"),
user: String(process.env.POSTGRES_USER || "app"),
password: String(process.env.POSTGRES_PASSWORD || "app"),
ssl: false,
},
verbose: true,
strict: true,
schema: "./src/database/schemas/index.ts",
out: ".migrations",
dialect: "postgresql",
casing: "snake_case",
dbCredentials: {
host: String(process.env.POSTGRES_HOST || "localhost"),
port: Number(process.env.POSTGRES_PORT || 5432),
database: String(process.env.POSTGRES_DB || "app"),
user: String(process.env.POSTGRES_USER || "app"),
password: String(process.env.POSTGRES_PASSWORD || "app"),
ssl: false,
},
verbose: true,
strict: true,
});

View File

@@ -8,6 +8,7 @@
"scripts": {
"build": "nest build",
"lint": "biome check",
"lint:write": "biome check --write",
"format": "biome format --write",
"start": "nest start",
"start:dev": "nest start --watch",
@@ -19,8 +20,8 @@
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"db:generate": "drizzle-kit generate",
"db:migrate": "drizzle-kit migrate",
"db:studio": "drizzle-kit studio"
"db:migrate": "drizzle-kit migrate",
"db:studio": "drizzle-kit studio"
},
"dependencies": {
"@nestjs/common": "^11.0.1",