A syntax formatter for PureScript, version 0.11.1. It formats PureScript source code in place or via STDIN/STDOUT, and supports checking if files are already formatted (useful for CI). It is the primary formatter for the PureScript ecosystem, offering configurable indentation, arrow style, and operator precedence via a pre-baked table or custom generation. Editor integrations for Spacemacs, Vim, and VS Code are available. Releases are stable with a maintenance focus.
npm install purs-tidyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs purs-tidy globally, creates a simple PureScript file, and formats it via STDIN.
Run `spago sources | xargs purs-tidy generate-operators > .tidyoperators` and configure with --operators .tidyoperators.
Use the CLI via child_process.exec or similar instead of direct imports.
Do not use --arrow-last; instead remove it or use --arrow-first.
Use version control (git) before running `purs-tidy format-in-place`.
Run: npm install -g purs-tidy
Add `$(npm root -g)/bin` to your PATH or install locally with npx.
Use --arrow-first or omit the option (default is arrow-first).