@@ -27,7 +27,7 @@ function getHeadingsMapKey(link, path) {
2727 return {
2828 key,
2929 hasHash,
30- hashId
30+ hashId,
3131 }
3232}
3333
@@ -57,7 +57,7 @@ module.exports = async (
5757 if ( node . url . startsWith ( '#' ) || ! / : [ 0 - 9 ] * \/ \/ / . test ( node . url ) ) {
5858 links . push ( {
5959 ...node ,
60- frontmatter : markdownNode . frontmatter
60+ frontmatter : markdownNode . frontmatter ,
6161 } )
6262 }
6363 }
@@ -70,7 +70,7 @@ module.exports = async (
7070 path : withPathPrefix ( slug ) ,
7171 links,
7272 headings,
73- setAt
73+ setAt,
7474 } )
7575
7676 // wait to see if all of the Markdown and MDX has been visited
@@ -114,7 +114,7 @@ module.exports = async (
114114
115115 const linksForPath = linksMap [ path ]
116116 if ( linksForPath . length ) {
117- const brokenLinks = linksForPath . filter ( link => {
117+ const brokenLinks = linksForPath . filter ( ( link ) => {
118118 // return true for broken links, false = pass
119119 const { key, hasHash, hashId } = getHeadingsMapKey ( link . url , path )
120120 if ( prefixedExceptions . includes ( key ) ) {
@@ -151,7 +151,7 @@ module.exports = async (
151151
152152 prefix = [
153153 String ( line + offset ) . padStart ( 3 , ' ' ) ,
154- String ( column ) . padEnd ( 4 , ' ' )
154+ String ( column ) . padEnd ( 4 , ' ' ) ,
155155 ] . join ( ':' )
156156 }
157157 console . warn ( `${ prefix } ${ link . url } ` )
0 commit comments