Bug
Feature PRs can get unrelated formatting commits from the Prettier workflow even when the feature change itself is small.
Reproduction
- Open a feature branch from the current
main.
- Push a small change that does not touch docs, generated route output, or lockfiles.
- Let the
Prettier GitHub Actions workflow run on the branch.
- Observe a bot commit that formats files unrelated to the feature branch, such as existing docs drift, generated router output, or lockfiles.
Root Cause
main has files that do not currently match the repository Prettier configuration. The workflow runs npx --yes prettier@3 --write . on every non-main branch push, so it formats all existing drift on the feature branch and pushes that as a follow-up commit.
Some files that should not be formatter-owned are also not ignored, including the generated TanStack route tree and the pnpm lockfile.
Fix
Establish a Prettier-clean baseline on main and update .prettierignore so generated route output and pnpm lockfiles are not rewritten by the formatter.
Impact
Future feature PRs should stay focused on their actual changes instead of inheriting broad docs/generated/lockfile formatting churn from main.
Bug
Feature PRs can get unrelated formatting commits from the Prettier workflow even when the feature change itself is small.
Reproduction
main.PrettierGitHub Actions workflow run on the branch.Root Cause
mainhas files that do not currently match the repository Prettier configuration. The workflow runsnpx --yes prettier@3 --write .on every non-main branch push, so it formats all existing drift on the feature branch and pushes that as a follow-up commit.Some files that should not be formatter-owned are also not ignored, including the generated TanStack route tree and the pnpm lockfile.
Fix
Establish a Prettier-clean baseline on
mainand update.prettierignoreso generated route output and pnpm lockfiles are not rewritten by the formatter.Impact
Future feature PRs should stay focused on their actual changes instead of inheriting broad docs/generated/lockfile formatting churn from
main.