fisker Cheung
fisker Cheung
> If so, parseSync will still be faster I already tested, it's indeed faster, but not much difference. We'll have more tests. > Did the bench run with node 22?...
Maybe `oxc-ts` is slower because of https://github.com/prettier/prettier/blob/74e49e08715d63bd851a807889afe2b08c4f5161/src/language-js/parse/oxc.js#L99 ?
> if the file extensions that doesn't end with an x. Filepath doesn't always exists/correct, when using via API.
Thanks!
Forgot to mention that user can `await Promise.all([prettier.format(), prettier.format()])`, that's why we prefer async apis.
There are lots of work to do inside `prettier.format()` include looking for configuration file, loading configuration, loading parser, loading printer, do embed formatting(will load parser/printer again and again in theory),...
Maybe we should only report when there is a number, since strings, `Date`s can also be compared.
@axetroy What do you think?
The logic is good, but it makes this rule almost useless.. since it's rare that both left and right matches `isNumber`.
Maybe we can skip this check with `strictTypes: false` (default: `true`) option? So this rule can be useful sometimes. [`TypeTracker` from `eslint-plugin-regexp`](https://github.com/ota-meshi/eslint-plugin-regexp/blob/aa8857f0cda5afb35081f2c2a64cc36174018e46/lib/utils/type-tracker/index.ts) can be useful, but it's quit big. @sindresorhus...