Prettier custom configuration

I create a .prettierrc file in every project. Is there a way I can save my settings globally instead? I want Prettier to work with my own customization. 

for example settings.json in vscode

0

The Prettier plugin resolves the configuration files according to the logic described in https://prettier.io/docs/en/configuration.html; as it's written there, Prettier intentionally doesn’t support any kind of global configuration. This is to make sure that when a project is copied to another computer, Prettier’s behavior stays the same. Otherwise, Prettier wouldn’t be able to guarantee that everybody in a team gets the same consistent results (related ticket: https://github.com/prettier/prettier/issues/6440).

0

请先登录再写评论。