chore(lint): moved eslint rule, no-underscore-dangle, with exceptions declared, to file-level

This commit is contained in:
Lam Wei Li 2022-03-12 16:00:40 +08:00
parent 03f74493a9
commit 4c14bde0bb
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,5 @@
/* eslint no-underscore-dangle: ["error", { "allow": ["__statusCode", "_remoteAddress", "__headers", "_logging"] }] */
const levels = require("./levels");
const DEFAULT_FORMAT =
@ -235,7 +237,6 @@ function matchRules(statusCode, currentLevel, ruleSet) {
* @api public
*/
module.exports = function getLogger(logger4js, options) {
/* eslint no-underscore-dangle:0 */
if (typeof options === "string" || typeof options === "function") {
options = { format: options };
} else {

View File

@ -1,4 +1,5 @@
/* eslint no-underscore-dangle:0 */
/* eslint no-underscore-dangle: ["error", { "allow": ["_log"] }] */
const debug = require("debug")("log4js:logger");
const LoggingEvent = require("./LoggingEvent");
const levels = require("./levels");