diff --git a/packages/bundler-webpack/src/build/ssr/createClientPlugin.ts b/packages/bundler-webpack/src/build/ssr/createClientPlugin.ts index 39d50f7164..757500b464 100644 --- a/packages/bundler-webpack/src/build/ssr/createClientPlugin.ts +++ b/packages/bundler-webpack/src/build/ssr/createClientPlugin.ts @@ -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 } diff --git a/packages/markdown/src/markdown.ts b/packages/markdown/src/markdown.ts index bc2c0968b5..612667d373 100644 --- a/packages/markdown/src/markdown.ts +++ b/packages/markdown/src/markdown.ts @@ -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, diff --git a/packages/markdown/src/plugins/anchorPlugin.ts b/packages/markdown/src/plugins/anchorPlugin.ts index 1af53c19c3..918712d761 100644 --- a/packages/markdown/src/plugins/anchorPlugin.ts +++ b/packages/markdown/src/plugins/anchorPlugin.ts @@ -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 }