chore: replace oxlint with biome for linting
This commit is contained in:
@@ -79,16 +79,20 @@ export const problems = {
|
||||
conflict: (detail?: string): ProblemDetails =>
|
||||
problem({ type: problemTypes.conflict, title: 'Conflict', status: 409, detail }),
|
||||
|
||||
validation: (
|
||||
errors: FieldErrors,
|
||||
detail = 'The request payload is invalid.',
|
||||
): ProblemDetails =>
|
||||
problem({ type: problemTypes.validation, title: 'Validation Error', status: 422, detail, errors }),
|
||||
validation: (errors: FieldErrors, detail = 'The request payload is invalid.'): ProblemDetails =>
|
||||
problem({
|
||||
type: problemTypes.validation,
|
||||
title: 'Validation Error',
|
||||
status: 422,
|
||||
detail,
|
||||
errors,
|
||||
}),
|
||||
|
||||
internal: (detail = 'An unexpected error happened while processing the request.'): ProblemDetails =>
|
||||
internal: (
|
||||
detail = 'An unexpected error happened while processing the request.',
|
||||
): ProblemDetails =>
|
||||
problem({ type: problemTypes.internal, title: 'Internal Server Error', status: 500, detail }),
|
||||
|
||||
unavailable: (detail = 'The service is temporarily unavailable.'): ProblemDetails =>
|
||||
problem({ type: problemTypes.unavailable, title: 'Service Unavailable', status: 503, detail }),
|
||||
} as const
|
||||
|
||||
|
||||
Reference in New Issue
Block a user