Skip to content

Meta: Format TS files with dprint - #9239

Closed
fregante wants to merge 21 commits into
mainfrom
copilot/format-ts-tsx-files-with-dprint
Closed

fregante wants to merge 21 commits into
mainfrom
copilot/format-ts-tsx-files-with-dprint

Conversation

@fregante

Copy link
Copy Markdown
Member

Continuing #9217

Copilot AI and others added 16 commits April 18, 2026 08:48
@fregante fregante added the meta Related to Refined GitHub itself label Apr 22, 2026

@fregante fregante left a comment •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and re-reviewed manually. I think I caught all whitespace regressions. Would be great to have a second reviewer double-check the spaces in JSX as well.

Due to dprint/dprint-plugin-typescript#476, the whitespace part is a downgrade regardless.

I do want to merge the changes in this PR though, even partially, as soon as possible. So we have to decide between:

  • accept as is, live with the buggy whitespace until the issue is fixed (not my favorite since it downgrades DX and increases risk of bugs)
  • remove dprint/typescript, restore eslint formatting for TS, merge whatever eslint accepts from this PR

Edit: I'm very much leaning towards the latter and I'm verifying what that will look like (wip)

refName: baseRefName
}
`).join('\n')
}

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This super-wonky formatting is what dprint enforces, I can't fine a better way other than extracting this sub-query into a variable. These are the two relevant issues:

@fregante
fregante requested a review from SunsetTechuila April 22, 2026 09:52
@fregante
fregante deleted the copilot/format-ts-tsx-files-with-dprint branch April 22, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

2 participants