fisker Cheung
fisker Cheung
**Please describe what the rule should do:** Disallow `() => {}` as the default of props. **What category should the rule belong to?** [ ] Enforces code style (layout) [x]...
In some cases, it's unsafe to unescape `Identifier`. Because of `typeAnnotation`, it's also hard to get the raw text. Maybe we can add unescaped text to `Identifier.raw`?
Currently we are using the same as the https://github.com/prettier/prettier, see https://github.com/prettier/prettier/pull/15989 Feel free to keep FUNDING.yml if you want diffent sponsors.
### 💻 - [ ] Would you like to work on this feature? ### What problem are you trying to solve? For some parse errors, it's fine to point the...
Audit all rules that make sense to check `Array.fromAsync()`.
### Description I've made two mistakes recently when using `Object.entries()`, they are just typos, but spell check didn't pick them since they are words. I used `Object.entires()` in one place,...
### Description [`Array#findLast`](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Array/findLast) is available now in Node.js 18. ### Fail ```js function foo(array, callback) { for (let index = array.length - 1; index >= 0; index--) { const element...
### Description According to https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy/Proxy/set#return_value > If the `set()` method returns `false`, and the assignment happened in strict-mode code, a [TypeError](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError) will be thrown. The following code throws. ```js (function...
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator https://github.com/tc39/proposal-nullish-coalescing ```js let foo = (undefined || null) || bar; // equals let foo = (undefined || null) ?? bar; ``` anyway, it not safe for `foo || bar`...