fisker Cheung
fisker Cheung
eslint-plugin-unicorn workaround https://github.com/sindresorhus/eslint-plugin-unicorn/blob/396a8fa27d26ca77838f43ae4cdf2d98c7d52fef/eslint.config.js#L9-L25 I didn't dig deep, I just removed `allowTrailingCommas` 😄
On second thought, we can just throw errors so user can get noted, putting this as draf.
There is an existing rule [`sonarjs/prefer-immediate-return`](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/master/docs/rules/prefer-immediate-return.md), but I'm not a fan, I [disabled it recently](https://github.com/fisker/shared-configs/commit/0f4aaf63580f286304bdc2aeed0e9f281e479b83).
I forgot where the code is, but this is similar to "anonymous default export", sometimes I want to give a name to the return value.
Wait for https://github.com/microsoft/TypeScript/issues/61772
https://github.com/microsoft/TypeScript/issues/61772 has been fixed.
Maybe we can use https://github.com/ota-meshi/eslint-online-playground
Ah, [example](https://eslint-online-playground.netlify.app/#eslint-plugin-unicorn) already there
Known issue, hard to fix, unless we remove autofix for this.