Skip to content

Commit

Permalink
style: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Aug 28, 2024
1 parent 8f2bc96 commit 1591787
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const createClientPlugin = (
const cid = m.chunks[0]
const chunk = chunks.find((c) => c.id === cid)

if (!chunk || !chunk.files) {
if (!chunk?.files) {
return
}

Expand Down
1 change: 1 addition & 0 deletions packages/markdown/src/markdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import type { Markdown, MarkdownOptions } from './types.js'
export const createMarkdown = ({
anchor,
assets,
// eslint-disable-next-line @typescript-eslint/no-deprecated
code,
vPre,
component,
Expand Down
3 changes: 2 additions & 1 deletion packages/markdown/src/plugins/anchorPlugin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { default as anchorPlugin } from 'markdown-it-anchor'
// eslint-disable-next-line import/no-rename-default
import anchorPlugin from 'markdown-it-anchor'

export type AnchorPluginOptions = anchorPlugin.AnchorOptions
export { anchorPlugin }

0 comments on commit 1591787

Please sign in to comment.