chore(lint): should not disable eslint rule, no-cond-assign, in file-level

This commit is contained in:
Lam Wei Li 2022-03-12 15:16:00 +08:00
parent 53c6837a60
commit 235656df8d
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF
4 changed files with 1 additions and 3 deletions

View File

@ -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 }],

View File

@ -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);
}

View File

@ -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);
}

View File

@ -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];