munich-quantum-toolkit / munich-quantum-toolkit/problemsolver

Format TypeScript files with prettier

Open
#351 0 comments 0 reactions 0 assignees View on GitHub

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:

Requested by: @denialhaag

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.