fisker Cheung
fisker Cheung
I'm worried how to implement this without type info. Maybe we can only check `const` and immediate use of `new URL()`.
What's the replacement for `new URLSearchParams().toString()`?
Thought this is not equivalence, maybe `RegExp#source` over `RegExp#toString()`? 😄
This should work for `for..await..of`, once [`Array.fromAsync`](https://github.com/tc39/proposal-array-from-async) is ready.
Found one in our codebase https://github.com/sindresorhus/eslint-plugin-unicorn/blob/ba9d53cd522e641d9b8da7ce495ed0110b8ce33a/test/package.mjs#L100-L111
I'd like forbid `Number.parseFloat()`, `Number.parseInt()` with (`radix` 10). ```js // Bad Number.parseFloat(foo) // Good Number(foo) ``` ```js // Bad Number.parseInt(foo, 10) // Good Number.parseInt(foo, 8) Number(foo) Math.round(Number(foo)) Math.floor(Number(foo)) Math.ceil(Number(foo)) ```
Forgot `Math.trunc()`.
I'm not sure what do you mean.
Nobody is saying anything about omit radix.
We only need to test that pattern is a file and check if it's ignored. This should be very easy to fix now, because I've marked ignored file in report...