Prettier plugin for the Spire monorepo toolchain. Current stable version is 5.0.8, released November 2022. Cadence is tied to Spire major releases, with patch releases roughly monthly. Key differentiators: integrates Prettier into Spire's hook system (setup, precommit, run) and provides opinionated defaults for config and ignore files, while allowing customization via options like `prettierConfig`, `autosetPrettierConfig`, and `glob`. Alternative to manual Prettier setup in Spire-based monorepos. Requires peer dependency `spire` ^4.0.0 || ^5.0.0 and Node >=12.20.
npm install spire-plugin-prettierVerified import paths — ran on the pinned version, not inferred.
Installs and configures spire-plugin-prettier, adds format command, and shows usage with npm script and npx.
Upgrade Node to v12.20 or later.
Install compatible spire version: npm install spire@^5.0.0
Set allowCustomConfig: true or remove .prettierrc.
Set autosetPrettierConfig: false and manually manage prettier config.
Check if plugin supports prettier v3; if not, pin prettier to v2.
Run npm install --save-dev spire-plugin-prettier
Use plugins: ['spire-plugin-prettier'] or plugins: [['spire-plugin-prettier', {}]]Install spire: npm install --save-dev spire