Skip to content

Commit 3fd0ecb

Browse files
committed
Fix linting
1 parent 9a08f79 commit 3fd0ecb

File tree

6 files changed

+2
-10
lines changed

6 files changed

+2
-10
lines changed

.eslintrc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module.exports = {
22
env: {
33
es6: true,
44
node: true,
5-
mocha: true
5+
mocha: true,
66
},
77
extends: 'airbnb-base',
88
globals: {
@@ -12,5 +12,5 @@ module.exports = {
1212
parserOptions: {
1313
ecmaVersion: 2018,
1414
sourceType: 'module',
15-
}
15+
},
1616
};

constants.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ const ECS_RESERVED = [
1414
'level', 'message',
1515
];
1616

17-
1817
module.exports = {
1918
DEFAULT_LOG_LEVEL,
2019
STRIGO_META_NAME,

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const { setupNodeLogger } = require('./setup/winston');
22
const { setupExpressLogger, defaultMatchers } = require('./setup/express');
33

4-
54
module.exports = {
65
setupNodeLogger,
76
setupExpressLogger,

setup/winston.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const { simple, ecs, errors } = require('../format');
44
const { removeEmpty } = require('../utils');
55
const { DEFAULT_LOG_LEVEL, STRIGO_META_NAME, ECS_RESERVED } = require('../constants');
66

7-
87
/**
98
* Create the require formatters for the logger.
109
*

test/logger.test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ describe('#setupExpressLogger()', () => {
148148
});
149149
});
150150

151-
152151
describe('utils #ecsMeta', () => {
153152
let req = {};
154153
let expected = {};
@@ -190,13 +189,11 @@ describe('utils #ecsMeta', () => {
190189
};
191190
});
192191

193-
194192
it('should process minimal request object', () => {
195193
expect(ecsMeta(req)).to.deep.equal(expected);
196194
});
197195
});
198196

199-
200197
describe('utils', () => {
201198
describe('#removeEmpty()', () => {
202199
it('should handle undefined or null as in spec', () => {

utils.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ function requestsFilter(matchers) {
2828
};
2929
}
3030

31-
3231
function ecsMeta(req, res, err) {
3332
const whitelistedHeaders = [
3433
'x-forwarded-for',
@@ -124,7 +123,6 @@ function ecsMeta(req, res, err) {
124123
return meta;
125124
}
126125

127-
128126
module.exports = {
129127
removeEmpty,
130128
removeReservedOrEmpty,

0 commit comments

Comments
 (0)