Skip to content

Commit

Permalink
linting done
Browse files Browse the repository at this point in the history
  • Loading branch information
sahitya-chandra committed Dec 31, 2024
1 parent 5b1388e commit 562be7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
12 changes: 3 additions & 9 deletions scripts/tools/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
2 changes: 1 addition & 1 deletion scripts/tools/tools-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion tests/build-pages.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit 562be7a

Please sign in to comment.