Skip to content

Commit

Permalink
fix: enforce noUnusedParams
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmaanKatyal committed Aug 26, 2023
1 parent 4d7ead8 commit 6e94230
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions backend/src/controllers/dish.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 6e94230

Please sign in to comment.