Skip to content

Prettier workflow can rewrite generated route and pnpm lockfiles #2280

Description

@anirudh5harma

Bug

The Prettier workflow runs prettier --write . on every non-main branch push, but two generated files are not excluded:

  • frontend/src/renderer/routeTree.gen.ts
  • frontend/pnpm-lock.yaml

When either generator produces output that differs from Prettier's rendering, the workflow can push a large formatter commit unrelated to the feature branch. Generated route output and package-manager lockfiles should remain owned by their generators.

Current main is already Prettier-clean, so this does not require a repository-wide formatting baseline.

Proposed fix

Add only those two generated paths to .prettierignore.

Acceptance criteria

  • Prettier no longer rewrites the generated route tree or pnpm lockfile.
  • Human-authored files remain covered by the workflow.
  • The change contains no documentation or source formatting churn.

Ported and narrowed from the original rewrite issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions