fisker Cheung

Results 335 issues of fisker Cheung

### Description [Array#with](https://github.com/tc39/proposal-change-array-by-copy#overview) I don't know who thought it's add good idea to check the index range. (Checked history, but only one [issue](https://github.com/tc39/proposal-change-array-by-copy/issues/75) questioned it, and closed by owner) ```js...

evaluating
new rule

Similar to [`explicit-length-check`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/explicit-length-check.md), enforce consistent style when check `index === -1` or `index !== -1` ## Fail ```js const index = foo.indexOf('bar'); if (index < 0) {} ``` ```js const...

help wanted
new rule

I think in most cases need a promise, using `Promise.withResolvers()` should be more readable than `new Promise()`, because `new Promise` needs a new function scope. I opened this issue instead...

help wanted
new rule

Babel recently added a test file https://github.com/babel/babel/blob/dc1f486ea52bef2341048c499ca1342d5cab7f8a/packages/babel-generator/test/fixtures/parentheses/in-inside-for/input.js#L1 Meriyah was not able to parse this case ```js for (var a = (x = b in c) => {} in {}); ```...

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

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

## Description We already stop unescaping characters in #16563. It makes sense to skip `makeString()` when the original quote matches the desired quote. However, this will make the following code...

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

After #16617, the following code should be improved the comma should insert before the fist comment, not the last comment. **Prettier pr-16617** [Playground link](https://deploy-preview-16617--prettier.netlify.app/playground/#N4Igxg9gdgLgprEAuEASAtgTwLToIYAOSABABQA6UxxA5AGYQQ0kCMANMQPSfEDCE6dAhiVqNAEZ4ATs2IAmLj36DhoxXwFDYlAJQBuEGxAQCMAJbQAzslDSpEAO4AFaQmso8AGwd5M1o+JSeGAA1nAwAMp4QgAyZlBwyHRelnABQaHhEQTB8QDmyDBSAK5pIKnoZoUlZXAAHgRwUmZaMF4AKk1Q0mZw7smeqUaW+Z5wAIrFEPBJKWUAVpZ1EaMTUzNIA0MgAI7rcE72BO4geJbYCXAAJteGIEV4Zp75yvjIp56edyNQeWMAgjAimZxMV4E4mnEErNBmUABYwdCeADqcLM8EsOTAcAibnRZgAbujMO8wJZ-CACaUAJJQG6wCJgZqmf50iIwTBjGHbAj2VLIoIEd68vpNAmJIzxVJSGCHPB5N6bOZGHJSaXvSxkim8+IwZFmK4wOHIAAcAAYjFI4HszFa5Qq8Nyym1xPrDcakHIjMVUu08OJ+sqQHB0OJrjcrjE8L9ivK4AAxCBSfBA-LvPBgiAgAC+2aAA) ```sh --parser scss ``` **Input:** ```scss...

type:bug
lang:css/scss/less

**Prettier 3.3.3** [Playground link](https://prettier.io/playground/#N4Igxg9gdgLgprEAuEACVAzCAnVAKSKAZxlQG0YBPABzgBpMBLOAGwBMiBdVCDVAeQBGAKzhgYAOgQxszIngzN2RAEIBDQawDsASgmEwamHgA6UdOiGjxU2LLjzFrDus0sAHDrPodO1MABfEDoQCGoYRmgiZFA1bGwIAHcABTiEaJQ1FkS1SmiQwWw1MABrOBgAZTUAWzgAGUYoOGQMLKJ6EELissrqYsaAc2QZAFcO9urGYewxkLgAD1pZWtgsgBU4bCg4uRa28cGWOABFEYh4PZZ2kOEieYrDk7OLpFarjoBHZ7hkhOoMkBqIgAWiacDY4OCIBkakYLEGAGEINVqmpkICWCwoURHgBBGAyRiCEbwZKbBpNS7XEAACxg1RYAHUaYx4EQ+mA4BV0qzGAA3VmUdFgIj5EB8sYASSgENgFTAsnCuJlFSoRypHWoCXajKK1HRWocmz5zRCjXa2BgvzUA1RGpCfWwFvRgg0rChWsaMEZjDYMBpyHcAAYQtg4F9GGHrba0a99iEYBofX6A0gAEwhEbtNYaDJvalwaqaNgQth1NRQAYjG1wABiOFRBMG6LUJIgIACASAA) ```sh --parser babel ``` **Input:** ```jsx for (const [type, fields] of Object.entries(fieldsBabel7).concat( Object.entries(fieldsBabel8) )) {} ``` **Output:** ```jsx for (const [type, fields] of Object.entries(fieldsBabel7).concat( Object.entries(fieldsBabel8), ))...

type:enhancement
lang:javascript