Unexpected literal in error position of callback.eslint(standard/no-callback-literal)
eslint standard mode - error correction, cb (true / false) callback function written, does not allow write in standard eslint starand in.
Solution
Promise.all(tasks)
.then(() => cb(new Error(true)))
.catch(() => {
const flag = false
cb(flag)
})
cb(new Error(true/false))
Or const flag = false;cb(flag)
can