Skip to content

Commit

Permalink
style: prepare for prettier:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lamweili committed Jun 22, 2022
1 parent 0a67b7c commit e378b59
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
5 changes: 4 additions & 1 deletion lib/appenders/index.js
Expand Up @@ -86,7 +86,10 @@ const createAppender = (name, config) => {
}

debug(`${name}: clustering.isMaster ? ${clustering.isMaster()}`);
debug(`${name}: appenderModule is ${require('util').inspect(appenderModule)}`); // eslint-disable-line global-require
debug(
// eslint-disable-next-line global-require
`${name}: appenderModule is ${require('util').inspect(appenderModule)}`
);
return clustering.onlyOnMaster(() => {
debug(`calling appenderModule.configure for ${name} / ${appenderConfig.type}`);
return appenderModule.configure(
Expand Down
7 changes: 5 additions & 2 deletions lib/configuration.js
Expand Up @@ -28,8 +28,11 @@ const throwExceptionIf = (config, checks, message) => {
const tests = Array.isArray(checks) ? checks : [checks];
tests.forEach((test) => {
if (test) {
throw new Error(`Problem with log4js configuration: (${util.inspect(config, { depth: 5 })})`
+ ` - ${message}`);
throw new Error(
`Problem with log4js configuration: (${util.inspect(config, {
depth: 5,
})}) - ${message}`
);
}
});
};
Expand Down
3 changes: 2 additions & 1 deletion lib/logger.js
Expand Up @@ -22,7 +22,8 @@ function defaultParseCallStack(data, skipIdx = 4) {
columnNumber: parseInt(lineMatch[4], 10),
callStack: stacklines.join("\n")
};
} else { // eslint-disable-line no-else-return
// eslint-disable-next-line no-else-return
} else {
// will never get here unless nodejs has changes to Error
console.error('log4js.logger - defaultParseCallStack error'); // eslint-disable-line no-console
}
Expand Down
6 changes: 4 additions & 2 deletions test/tap/dateFileAppender-test.js
Expand Up @@ -201,10 +201,12 @@ test("../../lib/appenders/dateFile", batch => {
return true;
}

on() { // eslint-disable-line class-methods-use-this
// eslint-disable-next-line class-methods-use-this
on() {
}

get writable() { // eslint-disable-line class-methods-use-this
// eslint-disable-next-line class-methods-use-this
get writable() {
return writable;
}
};
Expand Down
6 changes: 4 additions & 2 deletions test/tap/fileAppender-test.js
Expand Up @@ -358,10 +358,12 @@ test("log4js fileAppender", batch => {
return true;
}

on() { // eslint-disable-line class-methods-use-this
// eslint-disable-next-line class-methods-use-this
on() {
}

get writable() { // eslint-disable-line class-methods-use-this
// eslint-disable-next-line class-methods-use-this
get writable() {
return writable;
}
};
Expand Down

0 comments on commit e378b59

Please sign in to comment.