mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
chore(lint): should not disable eslint rule, no-cond-assign, in file-level
This commit is contained in:
parent
53c6837a60
commit
235656df8d
@ -11,6 +11,7 @@
|
||||
"indent": 2,
|
||||
"func-names": 0,
|
||||
"max-len": [1, 120, 2],
|
||||
"no-cond-assign": ["error", "except-parens"],
|
||||
"no-use-before-define": ["warn"],
|
||||
"no-param-reassign": 0,
|
||||
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
|
||||
|
||||
@ -100,7 +100,6 @@ function workerAppender(config) {
|
||||
function emptyBuffer() {
|
||||
let evt;
|
||||
debug('(worker) emptying worker buffer');
|
||||
/* eslint no-cond-assign:0 */
|
||||
while ((evt = buffer.shift())) {
|
||||
write(evt);
|
||||
}
|
||||
|
||||
@ -18,7 +18,6 @@ function appender(config, layout) {
|
||||
function emptyBuffer() {
|
||||
let evt;
|
||||
debug('emptying buffer');
|
||||
/* eslint no-cond-assign:0 */
|
||||
while ((evt = buffer.shift())) {
|
||||
write(evt);
|
||||
}
|
||||
|
||||
@ -340,7 +340,6 @@ function patternLayout(pattern, tokens) {
|
||||
let result;
|
||||
let searchString = pattern;
|
||||
|
||||
/* eslint no-cond-assign:0 */
|
||||
while ((result = regex.exec(searchString)) !== null) {
|
||||
// const matchedString = result[0];
|
||||
const padding = result[1];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user