Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

Commit 41aaa22

Browse files
committed
fix: rename unused parameters to accomodate new tsconfig.json settings
1 parent 9acc309 commit 41aaa22

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"update": "yarn upgrade-interactive --latest",
2020
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\" \"test/**/*.{js,jsx,ts,tsx}\" --fix",
2121
"test": "cross-env TS_NODE_PROJECT=./test/tsconfig.json tap --no-ts --node-arg=--require=ts-node/register test/**/*.ts",
22-
"test:ci": "cross-env TS_NODE_PROJECT=./test/tsconfig.json tap --coverage-report=text-lcov --no-ts --node-arg=--require=ts-node/register test/**/*.ts | coveralls",
22+
"test:ci": "cross-env TS_NODE_PROJECT=./test/tsconfig.json tap --coverage-report=text-lcov --no-ts --node-arg=--require=ts-node/register test/**/*.ts | coveralls",
2323
"semantic-release": "semantic-release"
2424
},
2525
"keywords": [],

src/plugins/support.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fp from 'fastify-plugin'
22

3-
export default fp((fastify, opts, next) => {
3+
export default fp((fastify, _, next) => {
44
fastify.decorate('someSupport', function() {
55
return 'hugs'
66
})

src/services/root.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import { nextCallback } from 'fastify-plugin'
44

55
export default (
66
fastify: FastifyInstance<Server, IncomingMessage, ServerResponse>,
7-
opts: {},
7+
_: {},
88
next: nextCallback,
99
) => {
10-
fastify.get('/', (request, reply) => {
10+
fastify.get('/', (_, reply) => {
1111
reply.send({ root: true })
1212
})
1313
next()

0 commit comments

Comments
 (0)