mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-05-11 18:36:17 +02:00
add eslint rule for no-console
This commit is contained in:
parent
ec16828497
commit
815df94db4
2 changed files with 2 additions and 0 deletions
|
@ -27,5 +27,6 @@ module.exports = {
|
|||
"indent": ["warn", 4, { "SwitchCase": 1 }],
|
||||
"object-curly-spacing": ["warn", "always"],
|
||||
"require-await": "warn",
|
||||
"no-console": "error"
|
||||
},
|
||||
};
|
||||
|
|
|
@ -79,6 +79,7 @@ class Logger {
|
|||
if (levelStr.length === 4) {
|
||||
levelStr += " "; // ensure logs are aligned
|
||||
}
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(colors.Dim, `${levelStr} ${new Date().toISOString()}: `, color, str, colors.Reset);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue