[formatter] remove unnecessary parentheses in `return`
Open
deno fmt
- Dominant language
- Rust
- Stars
- 108k
- Forks
- 6.4k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 58
Description
currently, deno formatter converts `(1)` to `1` which is good, but it doesn't convert `return (1)` to `return 1` which prettier does.
Contributor guide
Research direction
The issue does not name a source file, test, or entry point. Locate the formatter logic for parenthesized return expressions and inspect existing tests for `(1)` versus `return (1)`. Done means the formatter produces `return 1` while preserving required parentheses and the relevant tests pass.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, rust, typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100