Skip to content

Commit 1591787

Browse files
committed
style: fix lint errors
1 parent 8f2bc96 commit 1591787

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

packages/bundler-webpack/src/build/ssr/createClientPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export const createClientPlugin = (
6969
const cid = m.chunks[0]
7070
const chunk = chunks.find((c) => c.id === cid)
7171

72-
if (!chunk || !chunk.files) {
72+
if (!chunk?.files) {
7373
return
7474
}
7575

packages/markdown/src/markdown.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import type { Markdown, MarkdownOptions } from './types.js'
3535
export const createMarkdown = ({
3636
anchor,
3737
assets,
38+
// eslint-disable-next-line @typescript-eslint/no-deprecated
3839
code,
3940
vPre,
4041
component,
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { default as anchorPlugin } from 'markdown-it-anchor'
1+
// eslint-disable-next-line import/no-rename-default
2+
import anchorPlugin from 'markdown-it-anchor'
23

34
export type AnchorPluginOptions = anchorPlugin.AnchorOptions
45
export { anchorPlugin }

0 commit comments

Comments
 (0)