1.0.11-alpha.1 • Published 3 years ago

prettier-plugin-razor v1.0.11-alpha.1

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
3 years ago

prettier-plugin-razor

npm

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.

1.0.11-alpha.1

3 years ago

1.0.11-alpha

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago