eslint-plugin-prettier icon indicating copy to clipboard operation
eslint-plugin-prettier copied to clipboard

Question: How do I use prettier's --cache with eslint-plugin-prettier?

Open bcherny opened this issue 7 months ago • 3 comments

Like ESLint, Prettier supports a --cache arg for faster incremental formatting: https://prettier.io/docs/cli#--cache. I couldn't figure out how to set this arg when using eslint-plugin-prettier. I bet this is supported, but I can't figure it out. Would love a pointer.

bcherny avatar May 03 '25 18:05 bcherny

I have no idea how to support it, feel free to share your thoughts!

cc @fisker

JounQin avatar May 04 '25 00:05 JounQin

The cache feature currently only available in CLI, no api for it.

fisker avatar May 04 '25 01:05 fisker

Bummer -- feels like it would speed ESLint up a bunch, since Prettier is dominating the perf timings.

bcherny avatar May 04 '25 02:05 bcherny