Skip to content

Commit 5ce2bac

Browse files
Fdawgsclimba03003
andauthored
chore: update min fastify version (#190)
* chore: update min fastify version * chore: fix eslint config --------- Co-authored-by: KaKa <[email protected]>
1 parent e00cbe2 commit 5ce2bac

File tree

4 files changed

+20
-23
lines changed

4 files changed

+20
-23
lines changed

.eslintrc.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

eslint.config.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
'use strict'
2+
3+
const globals = require('globals')
4+
const js = require('@eslint/js')
5+
const prettier = require('eslint-plugin-prettier/recommended')
6+
7+
module.exports = [
8+
{
9+
languageOptions: {
10+
globals: {
11+
...globals.node,
12+
...globals.jest,
13+
},
14+
},
15+
},
16+
js.configs.recommended,
17+
prettier,
18+
]

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function fastifyRequestContext(fastify, opts, next) {
5858
}
5959

6060
module.exports = fp(fastifyRequestContext, {
61-
fastify: '4.x',
61+
fastify: '5.x',
6262
name: '@fastify/request-context',
6363
})
6464
module.exports.default = fastifyRequestContext

test/internal/watcherService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class AsyncHookContainer {
5959
const check = (t) => {
6060
try {
6161
return checkedTypes.includes(t)
62-
} catch (err) {
62+
} catch {
6363
return false
6464
}
6565
}

0 commit comments

Comments
 (0)