Skip to content

chore: upgrade eslint-plugin-md-style - #1013

Merged
NoiseFan merged 3 commits into
vitest-dev:v3from
NoiseFan:chore/md-style
Aug 31, 2026
Merged

chore: upgrade eslint-plugin-md-style#1013
NoiseFan merged 3 commits into
vitest-dev:v3from
NoiseFan:chore/md-style

Conversation

@NoiseFan

@NoiseFan NoiseFan commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

在提交PR之前,请确保您执行以下操作:

  • 曾阅读过翻译须知
  • 检查是否已经有PR以同样的方式解决问题,以避免创建重复。
  • 在此PR中描述正在解决的问题,或引用它解决的问题(例如:fixes #123)。

描述

为 Vitest 中文文档启用并统一 markdown 风格检查:

  • eslint-plugin-md-style 升级到新版本,并新增 lint 配置,使 pnpm run lint:fix 可自动规整 markdown 格式。
  • 对 55 个文档文件套用 md-style 规则(缩进、空行、::: 块结构等),共 581 行增 / 55 行删。
  • 补齐自动迁移遗漏的中英文混合 ::: 容器标题:
    • guide/test-context.mdconfig/index.md::: danger 弃用::: danger 已弃用
    • advanced/api/reporters.md::: tip 弃用通知::: tip 已弃用
    • advanced/api/vitest.md::: details New in Vitest 4::: details Vitest 4 新特性

纯文档风格与文案一致性改动,无行为与内容结构变化,不影响渲染结果。

附加上上下文

  • 工具链升级(chore: upgrade eslint-plugin-md-style)、全量格式化(style(docs): apply md-style lint formatting)与中英文混写标题修正分别以独立提交提交。
  • 验证方式:pnpm run lint 全仓 markdown 风格检查应通过;人工核对各 ::: 容器标题仅统一表述,无内容增删。

@netlify

netlify Bot commented Aug 31, 2026

Copy link
Copy Markdown

Deploy Preview for cn-vitest ready!

Name Link
🔨 Latest commit d441888
🔍 Latest deploy log https://app.netlify.com/projects/cn-vitest/deploys/6a94fbd785f384000805c1a0
😎 Deploy Preview https://deploy-preview-1013--cn-vitest.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@NoiseFan
NoiseFan merged commit 0c5dc27 into vitest-dev:v3 Aug 31, 2026
5 checks passed
@NoiseFan
NoiseFan deleted the chore/md-style branch August 31, 2026 04:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant