File tree Expand file tree Collapse file tree 6 files changed +23
-21
lines changed Expand file tree Collapse file tree 6 files changed +23
-21
lines changed Original file line number Diff line number Diff line change 8
8
9
9
### Changed
10
10
- Change EARL Assertor to Digital Bazaar, Inc.
11
+ - Update eslint dependencies.
11
12
12
13
## 6.0.0 - 2022-06-06
13
14
Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ root : true ,
3
+ env : {
4
+ node : true
5
+ } ,
6
+ extends : [
7
+ 'digitalbazaar' ,
8
+ 'digitalbazaar/module'
9
+ ]
10
+ } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
import yargs from 'yargs' ;
4
4
import { hideBin } from 'yargs/helpers' ;
5
5
import { promises as fs } from 'node:fs' ;
6
- import { table } from 'table' ;
7
6
import { markdownTable } from 'markdown-table' ;
8
7
import commonPathPrefix from 'common-path-prefix' ;
9
8
@@ -35,17 +34,17 @@ yargs(hideBin(process.argv))
35
34
. command (
36
35
'$0 <file...>' ,
37
36
'compare JSON-LD benchmark files' , ( ) => { } ,
38
- async ( argv ) => {
37
+ async argv => {
39
38
return compare ( argv ) ;
40
39
} )
41
40
. parse ( ) ;
42
41
43
42
async function compare ( {
44
43
env,
45
44
file,
46
- format,
45
+ // format,
47
46
relative,
48
- verbose
47
+ // verbose
49
48
} ) {
50
49
const contents = await Promise . all ( file . map ( async f => ( {
51
50
fn : f ,
@@ -86,7 +85,7 @@ async function compare({
86
85
return a [ 'jldb:result' ] [ 'jldb:hz' ] ;
87
86
}
88
87
function rfmt ( base , a ) {
89
- return relative ? ( 100 * ( a - base ) / base ) : a ;
88
+ return relative ? ( 100 * ( a - base ) / base ) : a ;
90
89
}
91
90
const compared = ordered . map ( t => [
92
91
t . slice ( tprefixlen ) ,
@@ -110,7 +109,7 @@ async function compare({
110
109
] , {
111
110
align : [
112
111
'l' ,
113
- ...results . map ( r => 'r' )
112
+ ...results . map ( ( ) => 'r' )
114
113
]
115
114
} ) ) ;
116
115
console . log ( ) ;
Original file line number Diff line number Diff line change 26
26
"main" : " compare.js" ,
27
27
"dependencies" : {
28
28
"common-path-prefix" : " ^3.0.0" ,
29
+ "eslint-plugin-unicorn" : " ^42.0.0" ,
29
30
"markdown-table" : " ^3.0.2" ,
30
- "yargs" : " ^17.4.0 "
31
+ "yargs" : " ^17.5.1 "
31
32
},
32
33
"devDependencies" : {
33
- "eslint" : " ^8.11 .0" ,
34
- "eslint-config-digitalbazaar" : " ^2.8 .0"
34
+ "eslint" : " ^8.17 .0" ,
35
+ "eslint-config-digitalbazaar" : " ^3.0 .0"
35
36
},
36
37
"engines" : {
37
38
"node" : " >=12"
46
47
" benchmark"
47
48
],
48
49
"scripts" : {
49
- "lint" : " eslint *.js "
50
+ "lint" : " eslint . "
50
51
}
51
52
}
Original file line number Diff line number Diff line change 49
49
"cors" : " ^2.7.1" ,
50
50
"cross-env" : " ^7.0.3" ,
51
51
"envify" : " ^4.1.0" ,
52
- "eslint" : " ^7.23 .0" ,
53
- "eslint-config-digitalbazaar" : " ^2.6.1 " ,
52
+ "eslint" : " ^8.17 .0" ,
53
+ "eslint-config-digitalbazaar" : " ^3.0.0 " ,
54
54
"esmify" : " ^2.1.1" ,
55
55
"express" : " ^4.16.4" ,
56
56
"fs-extra" : " ^9.1.0" ,
You can’t perform that action at this time.
0 commit comments