From 6e94230cba548c3241d7abf6ae8f9ab41d9cd112 Mon Sep 17 00:00:00 2001 From: armaankatyal Date: Sat, 26 Aug 2023 02:56:04 -0600 Subject: [PATCH] fix: enforce noUnusedParams --- backend/src/controllers/dish.ts | 3 +-- backend/tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/backend/src/controllers/dish.ts b/backend/src/controllers/dish.ts index ee137330..05b25010 100644 --- a/backend/src/controllers/dish.ts +++ b/backend/src/controllers/dish.ts @@ -1,5 +1,5 @@ import { Request, Response } from 'express' -import { Condition, Dish } from '../models/dish' +import { Condition } from '../models/dish' import { Transaction } from '../models/transaction' import { getDish, @@ -25,7 +25,6 @@ import { import { getQrCode } from '../services/qrCode' import { db } from '../services/firebase' import nodeConfig from 'config' -import { time } from 'console' export const getDishes = async (req: Request, res: Response) => { let userClaims = (req as CustomRequest).firebase diff --git a/backend/tsconfig.json b/backend/tsconfig.json index 8f33fbf3..e8bbabb1 100644 --- a/backend/tsconfig.json +++ b/backend/tsconfig.json @@ -87,8 +87,8 @@ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ - // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ - // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ + "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ + "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */