fisker Cheung

Results 1276 comments of fisker Cheung

For v0.1 https://prettier.io/blog/2025/11/27/3.7.0, I'll think about it.

> so even assignments can have side-effects Even getter.

I like this, should be easy to implement.

@yvele You suggest ```js let foo try { const bar = getBar(); foo = bar.slice(1, 2); } catch (err) { // … } console.log(foo); ``` Into: ```js let foo try...

Let's use the same algorithm from [`complexity`](https://github.com/eslint/eslint/blob/master/lib/rules/complexity.js) rule, and name it `try-complexity`?

Hard to tell before check real world cases.

Intentional to not support because we have `prefer-spread` rule. We can add support for it since it's not difficult to implement.

@Vladyslav-Soldatenko Turns out there is an `sourceCode.getDisableDirectives()` we can use directly!

```js Function#bind() Reflect.getOwnPropertyDescriptor() ... Canvas#toDataUrl() URL.createObjectURL() document.createElement() document.querySelector() ... ```