devongovett / dprint-node

A node API for the dprint TypeScript and JavaScript code formatter
MIT License
484 stars 11 forks source link

Load config from dprint.json #131

Open stephenh opened 2 years ago

stephenh commented 2 years ago

Hello! Really enjoying dprint/dprint-node to like ~5-10x speed up some code generation that was going through prettier, so thank you!

Just curious, but AFAICT calling dprint.format is not picking the .dprint.json file that I put into my project's root directory. Should that be happening?

I didn't see any code in dprint-node to do that, but was kinda hoping that dprint internally would just do that; unless maybe it is and I'm missing something?