fisker Cheung

Results 335 issues of fisker Cheung

Questions: 1. Should we allow rename, maybe under an option ```diff - const foo = (bar, x) => bar.x === x + const foo = ({x: xOfBar}, x) => xOfBar...

Part of #652 The original plan is to add fix for many cases, but it's hard. The reason I start to implement this rule is that [`promise/eslint-plugin-promise`](https://github.com/xjamundx/eslint-plugin-promise/blob/development/docs/rules/prefer-await-to-then.md) can't check `.then`...

Sometimes, when we import a module or destructuring an object, the property name are not available, we have to rename it. But during refactor, the property name is available again,...

help wanted
new rule

### Description I believe all negative `Array.every()` can write in positive `Array.some()` ```js [ ![].every(() => true) === [].some(() => !true), ![0].every(() => true) === [0].some(() => !true), ![1].every(() =>...

help wanted
new rule

Currently, [`new-for-builtins`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/new-for-builtins.md) enforce builtins used either `call` or `new`. My idea is to extend this rule to check all builtins. - Objects like `JSON`/`Math`/`Reflect`/`Temporal` should be neither `call` nor `new`...

enhancement
help wanted

## Fail ```js // Should use `Object.values` for (const key of Object.keys(foo)) { bar(foo[key]); } ``` ```js // Should use `Object.entries` for (const key of Object.keys(foo)) { bar(foo[key], key); }...

help wanted
new rule