Pretty-print your chess games using Prettier

The Prettier PGN plugin adds support for the Portable Game Notation format to Prettier, a code formatter with strict style rules. PGN is a standard plain text format for recording chess games. The plugin ensures proper formatting of PGN files, supporting variations, annotations, and comments within braces. It can handle multiple games in a single file and is lenient with non-canonical PGN games. However, it does not support “Rest of line” comments or escaped lines using a percent sign. To use the plugin, install it globally or locally with npm and activate it in the Prettier configuration file or directly in the CLI. This open-source plugin operates under the MIT License.

https://github.com/gmasclet/prettier-plugin-pgn

To top