UNPKG

prettier-plugin-razor

Version:
41 lines (26 loc) 1.54 kB
# prettier-plugin-razor ![npm](https://img.shields.io/npm/v/prettier-plugin-razor) <br> <table> <tr> <td><img src="https://prettier.io/icon.png" alt="Prettier icon" width="128" height="128"></td> <td><img src="https://upload.wikimedia.org/wikipedia/commons/d/d0/Blazor.png" alt="Blazor icon" width="128" height="128"></td> </tr> </table> <br> An formatter plugin for Prettier Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing, taking various rules into account. This plugin adds support for razor files (Blazor code). # Notice This plugin is still under development, and has very basic formatting functionality. Please try it out and provide feedback. Note that the @code sections (pure C# code) are ignored by the formatter. # Installation yarn: yarn add --dev prettier prettier-plugin-razor --dev --exact npm: npm install prettier prettier-plugin-razor --save-dev --save-exact # Usage This plugin will be loaded automatically (if installed) by prettier to format files ending with .razor suffix. Using it is exactly the same as using prettier Prettier [CLI usage docs](https://prettier.io/docs/en/cli.html)<br> Prettier [API usage docs](https://prettier.io/docs/en/api.html) # Configuration This library follows the same configuration format as Prettier, which is documented [here](https://prettier.io/docs/en/configuration.html). However, at this time, there are no configurations options enabled.