8000 chore: remove extra lint overrides · log4js-node/logFaces-HTTP@3d5dc76 · GitHub
[go: up one dir, main page]

Skip 8000 to content

Commit 3d5dc76

Browse files
author
Zachary Haber
committed
chore: remove extra lint overrides
1 parent d07bba2 commit 3d5dc76

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

.eslintrc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
"no-use-before-define": ["error"],
88
"no-param-reassign": 0,
99
"strict": 0,
10-
"import/no-extraneous-dependencies": 1,
11-
"prefer-spread": 0,
12-
"prefer-rest-params": 0,
13-
"prefer-destructuring": 0
10+
"import/no-extraneous-dependencies": 2
1411
},
1512
"parserOptions": {
1613
"ecmaVersion": 6
17-
}
14+
},
15+
"ignorePatterns": ["coverage/**/*", "commitlint.config.js"]
1816
}

lib/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function format(logData) {
1313
const filtered = logData.filter(
1414
(item) => !(item instanceof Error && item.stack)
1515
);
16-
return util.format.apply(util, filtered);
16+
return util.format(...filtered);
1717
}
1818

1919
function getErrorStack(logData) {
@@ -41,7 +41,7 @@ function logFacesAppender(config) {
4141
withCredentials: true,
4242
});
4343

44-
const configContext = config.configContext;
44+
const { configContext } = config;
4545

4646
return function log(event) {
4747
// convert to logFaces compact json format

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"scripts": {
3232
"prepare": "is-ci || husky install",
3333
"prettier:fix": "prettier --write .",
34-
"pretest": "prettier --check . && eslint lib/**/*.js test/**/*.js",
34+
"pretest": "prettier --check . && eslint",
3535
"test": "tap test/tap/**/*.js --100",
3636
"typings": "tsc -p types/tsconfig.json"
3737
},

test/tap/index-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
const test = require('tap').test;
3+
const { test } = require('tap');
44
const sandbox = require('@log4js-node/sandboxed-module');
55
const appender = require('../../lib');
66

0 commit comments

Comments
 (0)
0