Updated packages. Changed date picker package to Day.JS and applied it across whole app.
This commit is contained in:
21
backend/eslint.config.js
Normal file
21
backend/eslint.config.js
Normal file
@@ -0,0 +1,21 @@
|
||||
import js from '@eslint/js';
|
||||
import tseslint from 'typescript-eslint';
|
||||
|
||||
export default tseslint.config(
|
||||
{ ignores: ['dist', 'node_modules'] },
|
||||
js.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
{
|
||||
files: ['**/*.ts'],
|
||||
rules: {
|
||||
'no-unused-vars': 'off',
|
||||
'@typescript-eslint/no-unused-vars': ['warn', {
|
||||
argsIgnorePattern: '^_',
|
||||
varsIgnorePattern: '^_',
|
||||
ignoreRestSiblings: true,
|
||||
args: 'after-used'
|
||||
}],
|
||||
'@typescript-eslint/no-explicit-any': 'warn',
|
||||
},
|
||||
},
|
||||
);
|
||||
@@ -13,26 +13,26 @@
|
||||
"migrate:all": "ts-node src/_system/migrations/run-all.ts",
|
||||
"migrate:feature": "ts-node src/_system/migrations/run-feature.ts",
|
||||
"schema:generate": "ts-node src/_system/schema/generate.ts",
|
||||
"lint": "eslint src --ext .ts"
|
||||
"lint": "eslint src"
|
||||
},
|
||||
"dependencies": {
|
||||
"pg": "^8.11.3",
|
||||
"ioredis": "^5.3.2",
|
||||
"pg": "^8.13.1",
|
||||
"ioredis": "^5.4.2",
|
||||
"minio": "^7.1.3",
|
||||
"@fastify/multipart": "^8.1.0",
|
||||
"axios": "^1.6.2",
|
||||
"@fastify/multipart": "^9.0.1",
|
||||
"axios": "^1.7.9",
|
||||
"opossum": "^8.0.0",
|
||||
"winston": "^3.11.0",
|
||||
"zod": "^3.22.4",
|
||||
"winston": "^3.17.0",
|
||||
"zod": "^3.24.1",
|
||||
"js-yaml": "^4.1.0",
|
||||
"fastify": "^4.24.3",
|
||||
"@fastify/cors": "^9.0.1",
|
||||
"@fastify/helmet": "^11.1.1",
|
||||
"@fastify/jwt": "^8.0.0",
|
||||
"@fastify/type-provider-typebox": "^4.0.0",
|
||||
"@sinclair/typebox": "^0.31.28",
|
||||
"fastify-plugin": "^4.5.1",
|
||||
"@fastify/autoload": "^5.8.0",
|
||||
"fastify": "^5.2.0",
|
||||
"@fastify/cors": "^10.0.1",
|
||||
"@fastify/helmet": "^12.0.1",
|
||||
"@fastify/jwt": "^9.0.1",
|
||||
"@fastify/type-provider-typebox": "^5.0.0",
|
||||
"@sinclair/typebox": "^0.34.0",
|
||||
"fastify-plugin": "^5.0.1",
|
||||
"@fastify/autoload": "^6.0.1",
|
||||
"get-jwks": "^9.0.0",
|
||||
"file-type": "^16.5.4"
|
||||
},
|
||||
@@ -40,17 +40,17 @@
|
||||
"@types/node": "^20.10.0",
|
||||
"@types/pg": "^8.10.9",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
"typescript": "^5.6.3",
|
||||
"typescript": "^5.7.2",
|
||||
"ts-node": "^10.9.1",
|
||||
"nodemon": "^3.0.1",
|
||||
"nodemon": "^3.1.9",
|
||||
"jest": "^29.7.0",
|
||||
"@types/jest": "^29.5.10",
|
||||
"ts-jest": "^29.1.1",
|
||||
"supertest": "^6.3.3",
|
||||
"@types/supertest": "^2.0.16",
|
||||
"@types/opossum": "^8.0.0",
|
||||
"eslint": "^8.54.0",
|
||||
"@typescript-eslint/eslint-plugin": "^6.12.0",
|
||||
"@typescript-eslint/parser": "^6.12.0"
|
||||
"eslint": "^9.17.0",
|
||||
"@eslint/js": "^9.17.0",
|
||||
"typescript-eslint": "^8.18.1"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,12 +2,12 @@
|
||||
* @ai-summary Fastify global error handling plugin
|
||||
* @ai-context Handles uncaught errors with structured logging
|
||||
*/
|
||||
import { FastifyPluginAsync } from 'fastify';
|
||||
import { FastifyPluginAsync, FastifyError } from 'fastify';
|
||||
import fp from 'fastify-plugin';
|
||||
import { logger } from '../logging/logger';
|
||||
|
||||
const errorPlugin: FastifyPluginAsync = async (fastify) => {
|
||||
fastify.setErrorHandler((error, request, reply) => {
|
||||
fastify.setErrorHandler((error: FastifyError, request, reply) => {
|
||||
logger.error('Unhandled error', {
|
||||
error: error.message,
|
||||
stack: error.stack,
|
||||
|
||||
Reference in New Issue
Block a user