Skip to content

Commit

Permalink
Address ESLint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team authored and renovate[bot] committed Aug 24, 2024
1 parent 8b8e78f commit c661db1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ dist/**
node_modules/**
*.cjs
*.mjs
*.js
2 changes: 2 additions & 0 deletions test/index.test.mts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable sonarjs/assertions-in-tests */
import request from 'supertest';
import express, { Application, NextFunction, Request, Response } from 'express';
import { acceptsJsonMiddleware } from '../src/index.mjs';
Expand All @@ -8,6 +9,7 @@ interface IStatus {

function buildServer(): Application {
const app = express();
app.disable('x-powered-by');
return app.use(
acceptsJsonMiddleware,
(_req: Request, res: Response): unknown => res.json({ status: 200 }),
Expand Down

0 comments on commit c661db1

Please sign in to comment.