File tree 3 files changed +15
-16
lines changed
3 files changed +15
-16
lines changed Original file line number Diff line number Diff line change 9
9
* @typedef {import('mdast-util-to-markdown/lib/types.js').Handle } ToMarkdownHandle
10
10
* @typedef {import('mdast-util-to-markdown').State } State
11
11
* @typedef {import('mdast-util-to-markdown/lib/types.js').Options } ToMarkdownExtension
12
- * @typedef {import('./complex-types').ContainerDirective } ContainerDirective
13
- * @typedef {import('./complex-types').LeafDirective } LeafDirective
14
- * @typedef {import('./complex-types').TextDirective } TextDirective
12
+ * @typedef {import('./complex-types.js ').ContainerDirective } ContainerDirective
13
+ * @typedef {import('./complex-types.js ').LeafDirective } LeafDirective
14
+ * @typedef {import('./complex-types.js ').TextDirective } TextDirective
15
15
* @typedef {ContainerDirective|LeafDirective|TextDirective } Directive
16
16
*/
17
17
@@ -451,7 +451,7 @@ function fence(node) {
451
451
452
452
return ':' . repeat ( size )
453
453
454
- /** @type {import('unist-util-visit-parents/complex-types ').BuildVisitor<Root, Directive> } */
454
+ /** @type {import('unist-util-visit-parents').BuildVisitor<Root, Directive> } */
455
455
function onvisit ( _ , parents ) {
456
456
let index = parents . length
457
457
let nesting = 0
Original file line number Diff line number Diff line change 38
38
"dependencies" : {
39
39
"@types/mdast" : " ^3.0.0" ,
40
40
"@types/unist" : " ^2.0.0" ,
41
- "mdast-util-to-markdown" : " ^1.3 .0" ,
41
+ "mdast-util-to-markdown" : " ^1.5 .0" ,
42
42
"parse-entities" : " ^4.0.0" ,
43
43
"stringify-entities" : " ^4.0.0" ,
44
- "unist-util-visit-parents" : " ^5.0.0 "
44
+ "unist-util-visit-parents" : " ^5.1.3 "
45
45
},
46
46
"devDependencies" : {
47
47
"@types/tape" : " ^4.0.0" ,
51
51
"prettier" : " ^2.0.0" ,
52
52
"remark-cli" : " ^11.0.0" ,
53
53
"remark-preset-wooorm" : " ^9.0.0" ,
54
- "rimraf" : " ^3.0.0" ,
55
54
"tape" : " ^5.0.0" ,
56
55
"type-coverage" : " ^2.0.0" ,
57
56
"typescript" : " ^4.0.0" ,
58
57
"unist-util-remove-position" : " ^4.0.0" ,
59
58
"xo" : " ^0.53.0"
60
59
},
61
60
"scripts" : {
62
- "build" : " rimraf \" {index,test}.d.ts \" && tsc && type-coverage" ,
61
+ "build" : " tsc --build --clean && tsc --build && type-coverage" ,
63
62
"format" : " remark . -qfo && prettier . -w --loglevel warn && xo --fix" ,
64
63
"test-api" : " node --conditions development test.js" ,
65
- "test-coverage" : " c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 -- reporter lcov node --conditions development test.js " ,
64
+ "test-coverage" : " c8 --check-coverage --100 --reporter lcov npm run test-api " ,
66
65
"test" : " npm run build && npm run format && npm run test-coverage"
67
66
},
68
67
"prettier" : {
Original file line number Diff line number Diff line change 1
1
{
2
2
"include" : [" *.js" ],
3
3
"compilerOptions" : {
4
- "target" : " ES2020" ,
5
- "lib" : [" ES2020" ],
6
- "module" : " ES2020" ,
7
- "moduleResolution" : " node" ,
8
- "allowJs" : true ,
9
4
"checkJs" : true ,
10
5
"declaration" : true ,
11
6
"emitDeclarationOnly" : true ,
12
- "allowSyntheticDefaultImports" : true ,
7
+ "exactOptionalPropertyTypes" : true ,
8
+ "forceConsistentCasingInFileNames" : true ,
9
+ "lib" : [" es2020" ],
10
+ "module" : " node16" ,
11
+ "newLine" : " lf" ,
13
12
"skipLibCheck" : true ,
14
- "strict" : true
13
+ "strict" : true ,
14
+ "target" : " es2020"
15
15
}
16
16
}
You can’t perform that action at this time.
0 commit comments