chore: adopt biome for linting and formatting, wire turbo env, add ci workflow

This commit is contained in:
Jose Selesan
2026-10-15 15:39:17 -03:00
parent a95d14688a
commit ae11863613
40 changed files with 182 additions and 107 deletions

View File

@@ -1,5 +1,5 @@
import { cors } from 'hono/cors'
import { Hono } from 'hono'
import { cors } from 'hono/cors'
import { requestId } from 'hono/request-id'
import { secureHeaders } from 'hono/secure-headers'
@@ -9,7 +9,7 @@ import { errorHandler, notFoundHandler } from '@/lib/problem-details'
import { healthModule } from '@/modules/health'
import type { AppEnv } from '@/types'
const allowedOrigins = (process.env.CORS_ORIGIN ?? 'http://localhost:5173')
const allowedOrigins = (process.env.CORS_ORIGIN ?? 'http://localhost:7153')
.split(',')
.map((origin) => origin.trim())
.filter(Boolean)

View File

@@ -1,7 +1,7 @@
import { createApp } from '@/app'
import { logger } from '@/lib/logger'
const port = Number(process.env.PORT ?? 3000)
const port = Number(process.env.PORT ?? 4100)
const app = createApp()

View File

@@ -1,4 +1,4 @@
import { problem, problemTypes, type ProblemDetails } from '@superlist/shared'
import { type ProblemDetails, problem, problemTypes } from '@superlist/shared'
import type { Context } from 'hono'
import { HTTPException } from 'hono/http-exception'

View File

@@ -1,4 +1,4 @@
import { problem, type ProblemDetails, type Result } from '@superlist/shared'
import { type ProblemDetails, problem, type Result } from '@superlist/shared'
import type { Context } from 'hono'
import { problemResponse } from '@/lib/problem-details'

View File

@@ -1,5 +1,5 @@
import { zValidator, type Hook } from '@hono/zod-validator'
import { problems, type FieldErrors } from '@superlist/shared'
import { type Hook, zValidator } from '@hono/zod-validator'
import { type FieldErrors, problems } from '@superlist/shared'
import type { Context, Env, ValidationTargets } from 'hono'
import type { ZodError, ZodType } from 'zod'

View File

@@ -1,4 +1,4 @@
import { Ok, type Result, type ProblemDetails } from '@superlist/shared'
import { Ok, type ProblemDetails, type Result } from '@superlist/shared'
export type HealthStatus = {
status: 'ok'