fisker Cheung

Results 335 issues of fisker Cheung

## Description Fixes #18136 ## Checklist - [ ] I’ve added tests to confirm my change works. - [ ] (If changing the API or CLI) I’ve documented the changes...

do-not-merge

It can be useful to trace more positions, maybe rangeStart, rangeEnd can be useful, if we do https://github.com/prettier/prettier/issues/16292 1. Add a new doc `(description: string) => {type: 'mark', description: string}`...

status:needs discussion
type:refactor

Should be something wrong from https://github.com/prettier/prettier/pull/10122 On cellphone, will try to figure what's wrong later.

We have a headache with this tool, it should not run from our source code at all. Maybe we can somehow detect this use case and encourage people to use...

type:meta

First case **Prettier 3.6.2** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEAzCAnAFAGzjAbRwBooBdCVAAgHkAjAKzjBgDoEYMBLOAZyzgBKQcDyEMxAJLEAhmQC8UYgV7EICjK14AHHFxhYA9FUODiAE3n0mLVjN68uAcyhZgAW3wALCOaSqAVwwcJAgAXylBAG5UAGZWL3ssGEEAH1S4rXxk0jgAdyoAWRltM0ynbJSsgxJgXkhtOCQYYk8YH3MAORlPJBIEc20ILlgAEThUGQCcGF4kcwtmTBkYLmg5mTDBMJBiEAhtVfXkUBkMDAg8gAUzhF5kEBkcPJkAT3u9ugwZMABrfAAyj04AAZEZwZCTHC8OB7CCMZgwADq320D20GD4cAwADcIZ9vn9AdofiMnMhOAFYSAYe4uBSMFS9nAAB6NbieWBPGjslaYK4QRxHKAPAa7ECs9lcTkwJ4AFWxUDOPHuSChML2jigTjwAEUAhB4JCnhqQAxeCyAWS9QajWqTdSAI62uBXC7aVWPXgAWigcDg5gD4s4Mi4em1AGEIO53DIHk8cOKtTq4ABBGCcLh0ALwK7YsF+43Q6leGDuHBIrz6PgksBwAF3fRcHH6V4PMAOcU4qmSKCB2AAsDcQ6pvsAmCvPBF00YwVwFEldGYmG4-EgEYrmBumROWPT6kkjArh50GR0OCJvYYkbIrjmdrIAAcAAY9pjnVxMdvd3H7cW9rKdBIneD5IAATHsAQwnKZ6quq1JwO457mIG5ggjI2oBDucAAGKYLGGZkvGOYQCAYRhEAA) ```sh --parser babel ``` **Input:** ```jsx for(let[l,n]of Object.entries(e)){let[r,I,a]=n,[s,o]=r.split(/ /),d=Object.assign({method:s,url:o},I);f3.has(t)||f3.set(t,new Map),f3.get(t).set(l,{scope:t,methodName:l,endpointDefaults:d,decorations:a})} ``` **Output:** ```jsx for (let [l, n] of Object.entries(e)) { let [r, I, a]...

lang:javascript
area:idempotency

### Description There is a common mistake in a pull request. Since user may switch between pr and different issues, then write `Close/Fixes #123`, and paste the wrong issue number,...

enhancement
under discussion

Prettier v3.7.1 has a [serious bug](https://github.com/prettier/prettier/blob/main/CHANGELOG.md#javascript-fix-string-print-when-switching-quotes-18351-by-fisker) may break user code.

pinned

### 💻 - [ ] Would you like to work on this feature? ### What problem are you trying to solve? This `opts` argument seems not doing anything, it confuses...

i: needs triage

### 💻 - [ ] Would you like to work on this feature? ### What problem are you trying to solve? I was going to clean up the decorator print...

i: needs triage

### 💻 - [ ] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code This is a test...