Skip to content

Commit

Permalink
temp: mdast-util-eslint ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
vanyauhalin committed Dec 5, 2024
1 parent c19c3b2 commit 8c3285a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/mdast-util-eslint/lib/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,22 @@ async function lint(n: Code): Promise<void> {
}

const x = langToExt(n.lang)
// It is too complicated to cover this branch with tests.
/* c8 ignore next */
if (!x) {
return
}

const a = await e.lintText(n.value, {filePath: `.md/${x}`})
// It is too complicated to cover this branch with tests.
/* c8 ignore next */
if (a.length === 0) {
return
}

const [r] = a
// It is too complicated to cover this branch with tests.
/* c8 ignore next */
if (!r.output) {
return
}
Expand Down

0 comments on commit 8c3285a

Please sign in to comment.