Format files in your Obsidian vault using Prettier
Unzip the format-with-prettier.zip from the latest release into the .obsidian/plugins folder of your vault.
Note that you might have to reopen your vault for the plugin to show up under "Installed plugins"
Format on save is enabled by default, and can be changed under plugin settings
Additionally, a "Format current file" command is available
The plugin fill look for a prettierrc.json (note the lack of . at the start of the file) in the root folder of your vault. In it, you can configure Prettier as you normally would
Use the Prettier CLI:
$ cd YOUR_VAULT_FOLDER
$ echo '**/.obsidian' > .prettierignore
$ npx prettier . --write --config prettierrc.jsonMIT © Aliaksandr Haurusiou.