From af78b916644b4d9ecb3b220bb8876cfccf6b7de5 Mon Sep 17 00:00:00 2001 From: Alex Yau Date: Thu, 15 Aug 2024 10:02:04 +1000 Subject: [PATCH] Fix lint errors and lint commands --- package.json | 3 ++- src/routes/index.ts | 11 +++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 4b15f3f..a777919 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "start:debug": "yarn build -- --build && cross-env NODE_ENV=development node -r dotenv/config ./build/bin/www", "uid2": "cross-env NODE_ENV=development VIEW_FOLDER=../views_uid2/ ID_TYPE=UID2 LOCALE_FOLDER=../public/locales_uid2 nodemon -r dotenv/config --watch ./src ./src/bin/www.ts", "euid": "cross-env NODE_ENV=development VIEW_FOLDER=../views_euid/ ID_TYPE=EUID LOCALE_FOLDER=../public/locales_euid nodemon -r dotenv/config --watch ./src ./src/bin/www.ts", - "lint": "eslint '**/*.ts'", + "lint": "eslint .", + "lint-fix": "eslint --fix .", "build": "tsc", "test": "jest" }, diff --git a/src/routes/index.ts b/src/routes/index.ts index 89e03ea..335cad4 100644 --- a/src/routes/index.ts +++ b/src/routes/index.ts @@ -142,15 +142,14 @@ const defaultRouteHandler: RequestHandler<{}, {}, z.infer