Skip to content

refactor: migrate lintMarkdown from deprecated to options-based API - #194

Merged
luojiyin1987 merged 1 commit into
masterfrom
refactor/deprecated-lint-api
Sep 13, 2026
Merged

luojiyin1987 merged 1 commit into
masterfrom
refactor/deprecated-lint-api

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

Core ^2.5.0 marks lintMarkdown(markdown, rules, false) as @deprecated. The options-based overload lintMarkdown(markdown, { rules }) is the explicit lint-only path.

Changes:

  • src/cli/run-lint.ts
  • src/utils/lint-worker.ts
  • __tests__/stdin-fix.spec.ts
  • README.md
  • README.en-US.md

224 tests pass.

Closes #193

Replace deprecated `lintMarkdown(markdown, rules, false)` with
`lintMarkdown(markdown, { rules })` in:

- src/cli/run-lint.ts
- src/utils/lint-worker.ts
- __tests__/stdin-fix.spec.ts
- README.md
- README.en-US.md

Core ^2.5.0 already marks the old overload as @deprecated.
@luojiyin1987
luojiyin1987 force-pushed the refactor/deprecated-lint-api branch from 7e3a702 to 6bb2897 Compare September 13, 2026 08:31
@luojiyin1987
luojiyin1987 merged commit c4ea36e into master Sep 13, 2026
6 checks passed
@luojiyin1987
luojiyin1987 deleted the refactor/deprecated-lint-api branch September 13, 2026 08:34
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.

refactor: migrate lintMarkdown from deprecated to options-based API

1 participant