Skip to content

Commit a63524b

Browse files
committed
style: run linter
1 parent c41f21d commit a63524b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"scripts": {
2222
"build:prod": "./build.sh",
2323
"generateDocs": "typedoc --options typedoc.cjs",
24-
"lint": "eslint --ext ts src __mocks__ __tests__",
24+
"lint": "eslint --ext ts src __mocks__ __tests__ --max-warnings 0",
2525
"test": "node --experimental-vm-modules --es-module-specifier-resolution=node node_modules/jest/bin/jest.js"
2626
},
2727
"keywords": [

src/middleware/logger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ const formats = {
8484
export type Formats = typeof formats
8585

8686
const formatString = (request: Request, str: string): string =>
87-
str.replace(/:[a-zA-Z]+/gu, (str): string => {
88-
const key = str.slice(1) // Remove colon
87+
str.replace(/:[a-zA-Z]+/gu, (param): string => {
88+
const key = param.slice(1) // Remove colon
8989

9090
return key in tokens ? tokens[key as keyof typeof tokens](request) : str
9191
})

0 commit comments

Comments
 (0)