prettier-plugin-razor

1.0.11-alpha.1 • Public • Published

prettier-plugin-razor

npm


Prettier icon Blazor icon

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
Prettier API usage docs

Configuration

This library follows the same configuration format as Prettier, which is documented here. However, at this time, there are no configurations options enabled.

Readme

Keywords

Package Sidebar

Install

npm i prettier-plugin-razor

Weekly Downloads

118

Version

1.0.11-alpha.1

License

UNLICENSED

Unpacked Size

25.8 kB

Total Files

14

Last publish

Collaborators

  • kristinaplusplus