Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eslint and fix lint errors #212

Merged
merged 1 commit into from
Jun 12, 2019
Merged

Add eslint and fix lint errors #212

merged 1 commit into from
Jun 12, 2019

Conversation

golopot
Copy link
Collaborator

@golopot golopot commented Jun 12, 2019

No description provided.

@@ -249,7 +249,7 @@ exports.logger = function logger(options) {
return function (req, res, next) {
var coloredRes = {};

var currentUrl = req.originalUrl || req.url;
var currentUrl = req.originalUrl || req.url;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Irregular whitespace.

var testHelperOptionsWithoutBlacklist = { loggerOptions: {} };
return errorLoggerTestHelper(testHelperOptionsWithoutBlacklist).then(function (result) {
result.log.meta.should.have.property('trace');
});
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unreachable code path. It does not look like a valid test.

@@ -1,9 +1,6 @@
var util = require('util');
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unused.

@@ -676,7 +668,7 @@ describe('express-winston', function () {

describe('when middleware function is invoked on a route that returns JSON', function() {
it('should parse JSON in response body', function() {
var bodyObject = { "message": "Hi! I\'m a chunk!" };
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary escape.

@bithavoc
Copy link
Owner

@golopot I can merge as soon as the conflicts are resolved ✌️

Good stuff.

@golopot
Copy link
Collaborator Author

golopot commented Jun 12, 2019

Do you have a preference on resolving merge conflict? Do you prefer it be done with a rebase and force push, or a new merge commit?

@bithavoc
Copy link
Owner

you can commit multiple times, I can squash when merging.

@bithavoc bithavoc merged commit 0401a8d into bithavoc:master Jun 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants