Prettier Toml Plugin
WORK IN PROGRESS
This plugin is in alpha state. Please try it out and provide feedback.
yarn add --dev prettier --dev --exact
npm install prettier prettier-plugin-toml --save-dev --save-exact
This plugin will be loaded automatically (if installed) by prettier to format files ending with .toml suffix. Using it is exactly the same as using prettier
Try it out
Or clone an example npm package which uses prettier-plugin-toml.
How it works
A Prettier plugin must first parse the source code of the target language into a traversable data structure (Usually an Abstract Syntax Tree) and then print out that data structure in a "pretty" style.
Contributions are very welcome! See the top level contribution guide for this mono-repo.