Skip to content

Commit

Permalink
chore: fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Dec 23, 2024
1 parent cb89f59 commit 3b6636f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@fastify/pre-commit": "^2.1.0",
"@types/node": "^22.0.0",
"eslint": "^9.17.0",
"neostandard": "^0.11.9",
"neostandard": "^0.12.0",
"tap": "^18.7.1",
"typescript": "~5.7.2"
},
Expand Down
41 changes: 21 additions & 20 deletions test/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-unused-expressions */
import * as avvio from '../../'

{
Expand Down Expand Up @@ -51,11 +52,11 @@ import * as avvio from '../../'
if (err) throw err
})

app.after((err: Error, done: Function) => {
app.after((_err: Error, done: Function) => {
done()
})

app.after((err: Error, context: avvio.context<null>, done: Function) => {
app.after((_err: Error, context: avvio.context<null>, done: Function) => {
context.use
context.after
context.ready
Expand Down Expand Up @@ -83,11 +84,11 @@ import * as avvio from '../../'
if (err) throw err
})

app.ready((err: Error, done: Function) => {
app.ready((_err: Error, done: Function) => {
done()
})

app.ready((err: Error, context: avvio.context<null>, done: Function) => {
app.ready((_err: Error, context: avvio.context<null>, done: Function) => {
context.use
context.after
context.ready
Expand All @@ -104,11 +105,11 @@ import * as avvio from '../../'
if (err) throw err
})

app.close((err: Error, done: Function) => {
app.close((_err: Error, done: Function) => {
done()
})

app.close((err: Error, context: avvio.context<null>, done: Function) => {
app.close((_err: Error, context: avvio.context<null>, done: Function) => {
context.use
context.after
context.ready
Expand Down Expand Up @@ -184,11 +185,11 @@ import * as avvio from '../../'
if (err) throw err
})

app.after((err: Error, done: Function) => {
app.after((_err: Error, done: Function) => {
done()
})

app.after((err: Error, context: avvio.context<null>, done: Function) => {
app.after((_err: Error, context: avvio.context<null>, done: Function) => {
context.use
context.after
context.ready
Expand Down Expand Up @@ -216,11 +217,11 @@ import * as avvio from '../../'
if (err) throw err
})

app.ready((err: Error, done: Function) => {
app.ready((_err: Error, done: Function) => {
done()
})

app.ready((err: Error, context: avvio.context<null>, done: Function) => {
app.ready((_err: Error, context: avvio.context<null>, done: Function) => {
context.use
context.after
context.ready
Expand All @@ -237,11 +238,11 @@ import * as avvio from '../../'
if (err) throw err
})

app.close((err: Error, done: Function) => {
app.close((_err: Error, done: Function) => {
done()
})

app.close((err: Error, context: avvio.context<null>, done: Function) => {
app.close((_err: Error, context: avvio.context<null>, done: Function) => {
context.use
context.after
context.ready
Expand Down Expand Up @@ -306,12 +307,12 @@ import * as avvio from '../../'
if (err) throw err
})

app.after((err: Error, done: Function) => {
app.after((_err: Error, done: Function) => {
done()
})

app.after(
(err: Error, context: avvio.context<typeof server>, done: Function) => {
(_err: Error, context: avvio.context<typeof server>, done: Function) => {
context.use
context.after
context.ready
Expand All @@ -332,12 +333,12 @@ import * as avvio from '../../'
if (err) throw err
})

app.ready((err: Error, done: Function) => {
app.ready((_err: Error, done: Function) => {
done()
})

app.ready(
(err: Error, context: avvio.context<typeof server>, done: Function) => {
(_err: Error, context: avvio.context<typeof server>, done: Function) => {
context.use
context.after
context.ready
Expand All @@ -353,12 +354,12 @@ import * as avvio from '../../'
if (err) throw err
})

app.close((err: Error, done: Function) => {
app.close((_err: Error, done: Function) => {
done()
})

app.close(
(err: Error, context: avvio.context<typeof server>, done: Function) => {
(_err: Error, context: avvio.context<typeof server>, done: Function) => {
context.use
context.after
context.ready
Expand Down Expand Up @@ -390,7 +391,7 @@ import * as avvio from '../../'
timeout: 50000
}
// avvio with server and options
const app = avvio(server, options)
avvio(server, options)
}

{
Expand All @@ -400,7 +401,7 @@ import * as avvio from '../../'
expose: { after: 'after', ready: 'ready', use: 'use' }
}
// avvio with server, options and done callback
const app = avvio(server, options, () => undefined)
avvio(server, options, () => undefined)
}

{
Expand Down

0 comments on commit 3b6636f

Please sign in to comment.