Repository navigation
Load prettier-plugin-svelte so just format actually formats components - #3
Merged
Merged
Conversation
asg017
force-pushed
the
load-prettier-svelte-plugin
branch
from
September 25, 2026 16:53
7f9bde7 to
7667e0e
Compare
prettier-plugin-svelte has been a devDependency all along, but it was never
loaded: there is no prettier config anywhere in the repo, and prettier 3 does
not autoload plugins. Without a parser for .svelte, `prettier --check .`
silently skips those files during directory expansion, so `just format` and
`just format-check` have never touched a single Svelte component while
reporting success.
Asking for them explicitly is what exposes it:
$ npx prettier --check "src/**/*.svelte"
[error] No parser could be inferred for file ".../StatusDot.svelte"
[error] No parser could be inferred for file ".../DetailPage.svelte"
[error] No parser could be inferred for file ".../IndexPage.svelte"
That is every component in the project. Pre-existing on main, and it matters now
because PR 1 adds format-check to CI, where it would have gone green while
covering no UI code at all.
The config only names the plugin; everything else stays on prettier defaults,
which the generated files committed in the previous commit depend on. Verified
that adding it leaves api.d.ts and the page_data files untouched, so
types-check-fresh is unaffected.
Two of the three components needed reformatting. StatusDot.svelte was already
prettier-clean by luck.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
asg017
force-pushed
the
load-prettier-svelte-plugin
branch
from
September 25, 2026 17:30
7667e0e to
dad87e1
Compare
This was referenced Sep 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Claude-generated PR description
Stacked on #2.
prettier-plugin-sveltehas been a devDependency all along, but it was neverloaded — there is no prettier config anywhere in the repo, and prettier 3 does
not autoload plugins.
Without a parser for
.svelte,prettier --check .silently skips thosefiles during directory expansion. So
just formatandjust format-checkhave never touched a single Svelte component, while reporting success.
Asking for them explicitly is what exposes it:
That is every component in the project.
Why now
Pre-existing on
main, so not urgent on its own. It matters at this point in thestack because the next PR adds
just format-checkto CI — where it would havegone green while covering no UI code at all.
Scope
The config names only the plugin. Everything else stays on prettier defaults,
which the generated files in #2 depend on — verified that adding it leaves
api.d.tsand thepage_datafiles untouched, sotypes-check-freshisunaffected.
Two of the three components needed reformatting;
StatusDot.sveltewas alreadyprettier-clean by luck.
Verification
npx prettier --check "src/**/*.svelte"just format-checkjust types-check-freshjust telemetry-doc-checkjust testjust checkis still red — that is the next PR's job.🤖 Generated with Claude Code