From 562be7a5a1114474c97ee55628c104fc34a7254f Mon Sep 17 00:00:00 2001 From: Sahitya Chandra Date: Tue, 31 Dec 2024 20:59:38 +0530 Subject: [PATCH] linting done --- scripts/tools/logger.js | 12 +++--------- scripts/tools/tools-object.js | 2 +- tests/build-pages.test.js | 2 +- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/scripts/tools/logger.js b/scripts/tools/logger.js index 84e040d7f72..f5d429239a9 100644 --- a/scripts/tools/logger.js +++ b/scripts/tools/logger.js @@ -2,18 +2,12 @@ const { createLogger, format, transports } = require('winston'); const logger = createLogger({ level: 'error', // minimum level of messages logger will handle - format: format.combine( - format.timestamp(), - format.json() - ), + format: format.combine(format.timestamp(), format.json()), transports: [ new transports.Console({ - format: format.combine( - format.colorize(), - format.simple() - ) + format: format.combine(format.colorize(), format.simple()) }) - ], + ] }); module.exports = logger; \ No newline at end of file diff --git a/scripts/tools/tools-object.js b/scripts/tools/tools-object.js index 329cd8af361..ebf118d810b 100644 --- a/scripts/tools/tools-object.js +++ b/scripts/tools/tools-object.js @@ -8,7 +8,7 @@ const ajv = new Ajv() addFormats(ajv, ["uri"]) const validate = ajv.compile(schema) const { convertToJson } = require('../utils'); -const logger = require("./logger.js"); +const logger = require("./logger"); // Config options set for the Fuse object const options = { diff --git a/tests/build-pages.test.js b/tests/build-pages.test.js index d6117df0444..d5fdbf7e1ed 100644 --- a/tests/build-pages.test.js +++ b/tests/build-pages.test.js @@ -24,7 +24,7 @@ describe('copyAndRenameFiles', () => { beforeAll(() => { - [TEST_DIR, NEW_TEST_DIR].forEach(dir => { + [TEST_DIR, NEW_TEST_DIR].forEach((dir) => { if (fs.existsSync(dir)) { fs.rmSync(dir, { recursive: true, force: true }); }