File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -993,7 +993,6 @@ function compiler(options = {}) {
993
993
994
994
/** @returns {Code } */
995
995
function codeFlow ( ) {
996
- // @ts -expect-error: we’ve always used `null`.
997
996
return { type : 'code' , lang : null , meta : null , value : '' }
998
997
}
999
998
@@ -1007,7 +1006,6 @@ function compiler(options = {}) {
1007
1006
return {
1008
1007
type : 'definition' ,
1009
1008
identifier : '' ,
1010
- // @ts -expect-error: we’ve always used `null`.
1011
1009
label : null ,
1012
1010
title : null ,
1013
1011
url : ''
@@ -1037,7 +1035,6 @@ function compiler(options = {}) {
1037
1035
1038
1036
/** @returns {Image } */
1039
1037
function image ( ) {
1040
- // @ts -expect-error: we’ve always used `null`.
1041
1038
return { type : 'image' , title : null , url : '' , alt : null }
1042
1039
}
1043
1040
@@ -1054,7 +1051,6 @@ function compiler(options = {}) {
1054
1051
return {
1055
1052
type : 'list' ,
1056
1053
ordered : token . type === 'listOrdered' ,
1057
- // @ts -expect-error: we’ve always used `null`.
1058
1054
start : null ,
1059
1055
// @ts -expect-error Patched.
1060
1056
spread : token . _spread ,
@@ -1071,7 +1067,6 @@ function compiler(options = {}) {
1071
1067
type : 'listItem' ,
1072
1068
// @ts -expect-error Patched.
1073
1069
spread : token . _spread ,
1074
- // @ts -expect-error: we’ve always used `null`.
1075
1070
checked : null ,
1076
1071
children : [ ]
1077
1072
}
Original file line number Diff line number Diff line change 64
64
"prettier" : " ^2.0.0" ,
65
65
"rehype-parse" : " ^8.0.0" ,
66
66
"rehype-stringify" : " ^9.0.0" ,
67
- "remark-cli" : " ^9 .0.0" ,
68
- "remark-preset-wooorm" : " ^8 .0.0" ,
67
+ "remark-cli" : " ^10 .0.0" ,
68
+ "remark-preset-wooorm" : " ^9 .0.0" ,
69
69
"rimraf" : " ^3.0.0" ,
70
70
"tape" : " ^5.0.0" ,
71
71
"terser" : " ^5.0.0" ,
72
72
"type-coverage" : " ^2.0.0" ,
73
73
"typescript" : " ^4.0.0" ,
74
74
"unified" : " ^10.0.0" ,
75
- "xo" : " ^0.42 .0"
75
+ "xo" : " ^0.44 .0"
76
76
},
77
77
"scripts" : {
78
78
"build" : " rimraf \" dev/**/*.d.ts\" \" test/**/*.d.ts\" && tsc && type-coverage && micromark-build && esbuild . --bundle --minify | terser | gzip-size --raw" ,
Original file line number Diff line number Diff line change 2
2
* @typedef {import('mdast').Root } Root
3
3
*/
4
4
5
+ import assert from 'assert'
6
+ import { Buffer } from 'node:buffer'
5
7
import fs from 'fs'
6
8
import path from 'path'
7
- import assert from 'assert'
8
9
import test from 'tape'
9
10
import { unified } from 'unified'
10
11
import rehypeParse from 'rehype-parse'
You can’t perform that action at this time.
0 commit comments