Skip to content

Commit

Permalink
chore: update min fastify version (#190)
Browse files Browse the repository at this point in the history
* chore: update min fastify version

* chore: fix eslint config

---------

Co-authored-by: KaKa <[email protected]>
  • Loading branch information
Fdawgs and climba03003 authored Aug 8, 2024
1 parent e00cbe2 commit 5ce2bac
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 23 deletions.
21 changes: 0 additions & 21 deletions .eslintrc.json

This file was deleted.

18 changes: 18 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
'use strict'

const globals = require('globals')
const js = require('@eslint/js')
const prettier = require('eslint-plugin-prettier/recommended')

module.exports = [
{
languageOptions: {
globals: {
...globals.node,
...globals.jest,
},
},
},
js.configs.recommended,
prettier,
]
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function fastifyRequestContext(fastify, opts, next) {
}

module.exports = fp(fastifyRequestContext, {
fastify: '4.x',
fastify: '5.x',
name: '@fastify/request-context',
})
module.exports.default = fastifyRequestContext
Expand Down
2 changes: 1 addition & 1 deletion test/internal/watcherService.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class AsyncHookContainer {
const check = (t) => {
try {
return checkedTypes.includes(t)
} catch (err) {
} catch {
return false
}
}
Expand Down

0 comments on commit 5ce2bac

Please sign in to comment.