Skip to content

refactor(types): reuse @lint-md/core LintReportItem / FixedResult#88

Merged
luojiyin1987 merged 1 commit into
masterfrom
refactor/reuse-core-lint-types
Jul 10, 2026
Merged

refactor(types): reuse @lint-md/core LintReportItem / FixedResult#88
luojiyin1987 merged 1 commit into
masterfrom
refactor/reuse-core-lint-types

Conversation

@luojiyin1987

Copy link
Copy Markdown
Contributor

Closes #84.

Summary

  • Replace the hand-written BatchLintItem.lintResult / fixedResult shapes in src/types.ts with @lint-md/core's exported LintReportItem and FixedResult types (available since core 2.1.4, shipped via chore(core): upgrade @lint-md/core to 2.1.4 #87).
  • Pure type-level refactor — no runtime or behavior change.

Verification

  • npm run build (tsc cjs + esm) passes.
  • npm test: 9 suites / 89 tests pass.
  • Usages in get-report-data.ts (loc.start, message, severity, name) and lint-worker.ts (result.lintResult, result.fixedResult) are type-compatible with the new shapes.

🤖 Generated with opencode

@luojiyin1987 luojiyin1987 merged commit e5cd453 into master Jul 10, 2026
5 checks passed
@luojiyin1987 luojiyin1987 deleted the refactor/reuse-core-lint-types branch July 10, 2026 09:13
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(types): 复用 @lint-md/core 的 FixedResult / LintReportItem 类型

1 participant