Skip to content

Commit

Permalink
chore: replace no-unused-vars comment with underscore naming
Browse files Browse the repository at this point in the history
  • Loading branch information
tkurki committed Dec 8, 2024
1 parent 202ae1b commit e5df925
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/api/swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ export function mountSwaggerUi(app: IRouter & PluginManager, path: string) {

// custom middleware to re-setup swaggerUI, because plugins have
// not been loaded when this is called early in server startup sequence
// eslint-disable-next-line @typescript-eslint/no-unused-vars
app.use(path, (req: Request, res: Response, next: NextFunction) => {
swaggerUi.setup(undefined, {
explorer: true,
Expand Down
3 changes: 1 addition & 2 deletions src/deltaPriority.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ export const getToPreferredDelta = (
): ToPreferredDelta => {
if (!sourcePrioritiesData) {
debug('No priorities data')
// eslint-disable-next-line @typescript-eslint/no-unused-vars
return (delta: any, now: Date, selfContext: string) => delta
return (delta: any, _now: Date, _selfContext: string) => delta
}
const precedences = toPrecedences(sourcePrioritiesData)

Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -635,8 +635,7 @@ function startInterfaces(app: ServerApp & WithConfig & WithWrappedEmitter) {
;(app as any)[prop] = value
return true
},
// eslint-disable-next-line @typescript-eslint/no-unused-vars
get(target: any, prop: string | symbol, receiver: any) {
get(target: any, prop: string | symbol, _receiver: any) {
return (app as any)[prop]
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/interfaces/mfd_webapp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@ const send = (

const getPublishToNavico = (protocol: string, port: number) => async () => {
let addresses: string[] = []
// eslint-disable-next-line @typescript-eslint/no-unused-vars
for (const [name, infos] of Object.entries(networkInterfaces())) {
for (const [_name, infos] of Object.entries(networkInterfaces())) {
for (const addressInfo of infos || []) {
if (addressInfo.family === 'IPv4') {
addresses.push(addressInfo.address)
Expand Down

0 comments on commit e5df925

Please sign in to comment.