hidori/node-json-logger

View on GitHub

Showing 64 of 64 total issues

Replace ················this.fatal·=·function·()·{·this.output('fatal',·Array.from(arguments))·} with ········this.fatal·=·function()·{⏎··········this.output("fatal",·Array.from(arguments))
Open

                this.fatal = function () { this.output('fatal', Array.from(arguments)) };
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············ with ······
Open

            }
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        switch (level) {
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'moment-timezone' with "moment-timezone"
Open

const moment = require('moment-timezone');
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············:·moment.utc().format('YYYY-MM-DDTHH:mm:ss.SSS[Z]' with ········:·moment.utc().format("YYYY-MM-DDTHH:mm:ss.SSS[Z]")
Open

            : moment.utc().format('YYYY-MM-DDTHH:mm:ss.SSS[Z]');
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ······
Open

            return data;
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············ with ······
Open

            data.level = level;
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ················ with ········
Open

                data.loggerName = this.options.loggerName;
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ·····case·'info' with ·};⏎······case·"info"
Open

            case 'info':
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ················$object[message${i·==·0·?·''with········$object[message${i·==·0·?·""
Open

                $object[`message${i == 0 ? '' : i}`] = _;
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············}⏎··········· with ······}
Open

            }
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        this.options.timestamp = this.options.timestamp !== false;
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ············?·moment.tz(this.options.timezone).format('YYYY-MM-DDTHH:mm:ss.SSS[Z]' with ········?·moment.tz(this.options.timezone).format("YYYY-MM-DDTHH:mm:ss.SSS[Z]"
Open

            ? moment.tz(this.options.timezone).format('YYYY-MM-DDTHH:mm:ss.SSS[Z]')
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········ with ····
Open

        this.head = level => {
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Delete ······
Open

            if (this.options.timestamp) {
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ················this.trace·=·function·()·{·this.output('trace',·Array.from(arguments))·} with ········this.trace·=·function()·{⏎··········this.output("trace",·Array.from(arguments))
Open

                this.trace = function () { this.output('trace', Array.from(arguments)) };
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ······case·'error' with ··};⏎······case·"error"
Open

            case 'error':
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace 'use·strict' with "use·strict"
Open

'use strict';
Severity: Minor
Found in index.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········this.timestamp·=·()·=>· with ····this.timestamp·=·()·=>⏎······(
Open

        this.timestamp = () => this.options.timezone
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Replace ········const·level·=·levels.includes(this.options.level)·?·this.options.level·:·'debug' with ····const·level·=·levels.includes(this.options.level)⏎······?·this.options.level⏎······:·"debug"
Open

        const level = levels.includes(this.options.level) ? this.options.level : 'debug';
Severity: Minor
Found in lib/logger.js by eslint

For more information visit Source: http://eslint.org/docs/rules/

Severity
Category
Status
Source
Language