{"library":"spire-plugin-prettier","title":"spire-plugin-prettier","type":"library","description":"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.","language":"javascript","status":"active","last_verified":"Sat Apr 25","install":{"commands":["npm install spire-plugin-prettier"],"cli":null},"imports":["module.exports = { plugins: [['spire-plugin-prettier', options]] }","npx spire format","// spire.config.js\nmodule.exports = { plugins: ['spire-plugin-prettier'] }"],"auth":{"required":false,"env_vars":[]},"links":{"homepage":null,"github":"https://github.com/researchgate/spire","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/spire-plugin-prettier","openapi_spec":null,"status_page":null,"smithery":null},"quickstart":{"code":"// Install dependencies\nnpm install --save-dev spire spire-plugin-prettier\n\n// Create spire.config.js\nmodule.exports = {\n  plugins: [\n    ['spire-plugin-prettier', {\n      command: 'format',\n      prettierConfig: './config.js',\n      autosetPrettierConfig: true,\n    }]\n  ]\n};\n\n// Add script to package.json\n\"scripts\": {\n  \"format\": \"spire format\"\n}\n\n// Run formatting\nnpm run format\n\n// Or use npx\nnpx spire format --write 'src/**/*.js'","lang":"javascript","description":"Installs and configures spire-plugin-prettier, adds format command, and shows usage with npm script and npx.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}