-
Notifications
You must be signed in to change notification settings - Fork 187
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
Conversation
@@ -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; |
There was a problem hiding this comment.
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'); | ||
}); |
There was a problem hiding this comment.
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'); |
There was a problem hiding this comment.
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!" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary escape.
@golopot I can merge as soon as the conflicts are resolved ✌️ Good stuff. |
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? |
you can commit multiple times, I can squash when merging. |
No description provided.