@quri/prettier-plugin-squiggle
is a Prettier plugin for formatting Squiggle code.
Install Prettier and this package, @quri/prettier-plugin-squiggle
. It should active automatically.
- read https://prettier.io/docs/en/plugins.html
- read https://github.com/prettier/prettier/blob/main/commands.md
- refer to
src/ast/peggyHelpers.ts
in squiggle-lang for Squiggle's AST type - use tests to check your changes