munich-quantum-toolkit / munich-quantum-toolkit/problemsolver
Format TypeScript files with prettier
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 55
- Forks
- 7
- Avg merge
- 4h 17m
- Merged PRs (30d)
- 32
Description
Summary
This issue tracks the task of formatting TypeScript files with prettier to ensure consistent code style across the codebase.
Details
The prettier configuration can be extended to include TypeScript files by adding ts and tsx to the types_or field in the prettier hook configuration in .pre-commit-config.yaml.
During PR #349, it was discovered that including TypeScript files in the prettier configuration revealed formatting inconsistencies and potential code quality issues in the TypeScript files that should be addressed.
Context
This issue was created as a follow-up to the discussion in PR #349:
- PR: https://github.com/munich-quantum-toolkit/problemsolver/pull/349
- Comment: https://github.com/munich-quantum-toolkit/problemsolver/pull/349#discussion_r2752272753
Requested by: @denialhaag
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the prettier hook configuration in .pre-commit-config.yaml and review the discussion in PR #349. Include ts and tsx in its types_or field, then inspect the TypeScript files for formatting inconsistencies revealed by the hook. Done means the TypeScript files are formatted consistently and the hook handles them.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100