Is there support for custom prettier configuration file paths?

The prettier CLI supports custom file paths. Other code quality tools in our workflow support custom configuration file paths, such as stylelint or eslint or even vite and webpack.

I can't find an configuration option for prettier though. Does it exist or is it planned?
We run prettier on save and via pre-commit hook and it is pretty annoying to see that an edited file gets formatted with default rules and then fails when committing as our rules are applied just because they are placed in a different folder instead of the root folder. 

0

Unfortunately, it's not possible at the moment. Please vote for https://youtrack.jetbrains.com/issue/WEB-60059 to increase its priority and to be notified about updates.

0

Thank you, Oksana Chumak, for pointing me to the existing issue!

0

请先登录再写评论。