From 2f4a9bbb296c7d4658c9a00b21e3c272ae3bcad4 Mon Sep 17 00:00:00 2001 From: Nicholas Gates Date: Tue, 25 Jul 2023 10:09:04 -0400 Subject: [PATCH] fix: QPPA-7951 resolved linting errors --- src/index.ts | 2 +- src/request.ts | 6 +++--- test/index.ts | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/index.ts b/src/index.ts index c19b66d..e09a58b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -146,7 +146,7 @@ const noneLogger = { // A morgan-equivalent logger used for format='none' that suppresses // all output -const noneAccessLogger = function (req, res, next) {}; +const noneAccessLogger = function (...args: unknown[]) {}; class SharedLogger { accessLogger = undefined; diff --git a/src/request.ts b/src/request.ts index ce61cf8..9fb6eff 100644 --- a/src/request.ts +++ b/src/request.ts @@ -1,6 +1,6 @@ import http = require('http'); export interface Request extends http.IncomingMessage { - baseUrl: string; - query: string; -} \ No newline at end of file + baseUrl: string; + query: string; +} diff --git a/test/index.ts b/test/index.ts index 45c8250..a26618a 100644 --- a/test/index.ts +++ b/test/index.ts @@ -117,14 +117,14 @@ describe('sharedLogger', function () { }; const spy = sandbox.spy(process.stdout, 'write'); sharedLogger.configure(options); - sharedLogger.logger.info('should be prettyPrint', { meta: {a: 'b'}}); + sharedLogger.logger.info('should be prettyPrint', { + meta: { a: 'b' }, + }); - const expectedVal = "{\n meta: { a: 'b' },\n level: 'info',\n message: 'should be prettyPrint',\n label: 'test'\n}\n"; + const expectedVal = + "{\n meta: { a: 'b' },\n level: 'info',\n message: 'should be prettyPrint',\n label: 'test'\n}\n"; - assert.equal( - spy.getCall(0).lastArg, - expectedVal, - ); + assert.equal(spy.getCall(0).lastArg, expectedVal); }); it('should set format to logstash', () => {