mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
chore(lint): moved eslint rule, no-underscore-dangle, with exceptions declared, to file-level
This commit is contained in:
parent
03f74493a9
commit
4c14bde0bb
@ -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 {
|
||||
|
||||
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user