prettier-plugin-marko
v4.0.8
Published
A prettier plugin for parsing and printing Marko files
Readme
Note: For prettier@2 or below use
prettier-plugin-marko@2.
A Prettier plugin for parsing and printing Marko files.
Installation
npm
npm install prettier prettier-plugin-marko -DUsage
See the Prettier "using plugins" guide.
npm exec -- prettier --write "**/*.marko" --plugin=prettier-plugin-markoOr via prettier configuration like:
{
"plugins": ["prettier-plugin-marko"]
}Editors
Editors such as VSCode provide plugins for calling Prettier directly from your editor.
Options
On top of Prettier's options, there are a few additional options picked up by this plugin.
markoSyntax: "auto" | "html" | "concise"
Marko supports both an html like and concise syntaxes. By default this plugin will try to detect the syntax you are already using and output a formatted document in that syntax.
You can overide the default ("auto") to enforce that all templates are formatted to the syntax of your choosing.
Code of Conduct
This project adheres to the eBay Code of Conduct. By participating in this project you agree to abide by its terms.
