File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 7
7
"no-use-before-define": ["error"],
8
8
"no-param-reassign": 0,
9
9
"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
14
11
},
15
12
"parserOptions": {
16
13
"ecmaVersion": 6
17
- }
14
+ },
15
+ "ignorePatterns": ["coverage/**/*", "commitlint.config.js"]
18
16
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ function format(logData) {
13
13
const filtered = logData . filter (
14
14
( item ) => ! ( item instanceof Error && item . stack )
15
15
) ;
16
- return util . format . apply ( util , filtered ) ;
16
+ return util . format ( ... filtered ) ;
17
17
}
18
18
19
19
function getErrorStack ( logData ) {
@@ -41,7 +41,7 @@ function logFacesAppender(config) {
41
41
withCredentials : true ,
42
42
} ) ;
43
43
44
- const configContext = config . configContext ;
44
+ const { configContext } = config ;
45
45
46
46
return function log ( event ) {
47
47
// convert to logFaces compact json format
Original file line number Diff line number Diff line change 31
31
"scripts" : {
32
32
"prepare" : " is-ci || husky install" ,
33
33
"prettier:fix" : " prettier --write ." ,
34
- "pretest" : " prettier --check . && eslint lib/**/*.js test/**/*.js " ,
34
+ "pretest" : " prettier --check . && eslint" ,
35
35
"test" : " tap test/tap/**/*.js --100" ,
36
36
"typings" : " tsc -p types/tsconfig.json"
37
37
},
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
- const test = require ( 'tap' ) . test ;
3
+ const { test } = require ( 'tap' ) ;
4
4
const sandbox = require ( '@log4js-node/sandboxed-module' ) ;
5
5
const appender = require ( '../../lib' ) ;
6
6
You can’t perform that action at this time.
0 commit comments