Skip to content

fix(docs): include docs/ in fmt and lint#1552

Merged
fengmk2 merged 2 commits into
mainfrom
fix/docs-fmt-lint-ignore
May 11, 2026
Merged

fix(docs): include docs/ in fmt and lint#1552
fengmk2 merged 2 commits into
mainfrom
fix/docs-fmt-lint-ignore

Conversation

@fengmk2
Copy link
Copy Markdown
Member

@fengmk2 fengmk2 commented May 11, 2026

Summary

  • Remove docs/** from fmt.ignorePatterns and lint.ignorePatterns in vite.config.ts so the docs/ directory is formatted and linted with the rest of the repo.
  • Fix two lint errors that surfaced once docs/.vitepress was included:
    • docs/.vitepress/tsconfig.json: replace noEmit: false + emitDeclarationOnly / outDir / declaration with noEmit: true. This config is editor/lint-only (no build script consumes it), so emit settings were spurious and triggered a rootDir error.
    • docs/.vitepress/config.mts: drop tsconfigPaths: true. Vitepress bundles upstream vite@7.3.1 which doesn't have that option on ResolveOptions (only Vite+'s fork does), so it was silently ignored at runtime. The alias entries below already cover the needed path mappings.

Test plan

  • vp fmt — reformats 6 previously-skipped files under docs/
  • vp lint — 0 warnings, 0 errors across 182 files

Remove docs/** from fmt.ignorePatterns and lint.ignorePatterns in
vite.config.ts so the docs directory is formatted and linted with the
rest of the repo.

Fix two lint errors surfaced in docs/.vitepress:

- tsconfig.json: this config is editor/lint-only (no build script
  consumes it), so replace noEmit: false + emitDeclarationOnly/outDir/
  declaration with noEmit: true to resolve the rootDir error.
- config.mts: drop tsconfigPaths: true. Vitepress bundles upstream
  vite@7.3.1 which does not have that option on ResolveOptions (only
  Vite+'s fork does), so it was silently ignored at runtime. The
  alias entries below already cover the path mappings.
@fengmk2 fengmk2 self-assigned this May 11, 2026
@netlify
Copy link
Copy Markdown

netlify Bot commented May 11, 2026

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit 53245d5
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a01c9df3ec86f0008c3241a

@fengmk2 fengmk2 marked this pull request as ready for review May 11, 2026 12:20
@fengmk2 fengmk2 merged commit 3cdd2e6 into main May 11, 2026
38 checks passed
@fengmk2 fengmk2 deleted the fix/docs-fmt-lint-ignore branch May 11, 2026 12:31
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.

2 participants