A Prettier plugin that formats Telepact API schema files (*.telepact.json and *.telepact.yaml). Currently in alpha (v1.0.0-alpha.301), released as part of the Telepact monorepo with weekly updates. It focuses on consistent docstring formatting and indentation. Unlike generic JSON/YAML formatters, this plugin understands the Telepact schema structure, ensuring proper alignment of docstrings and fields. Primarily useful for teams that author schemas in JSON; YAML block scalars are recommended for new projects.
npm install prettier-plugin-telepactVerified import paths — ran on the pinned version, not inferred.
Configure Prettier to use the Telepact plugin and format schema files.
Add override in .prettierrc: { 'files': '*.telepact.json', 'options': { 'parser': 'telepact-parse' } }Only apply this plugin to .telepact.json files via overrides.
Pin to a specific version and test formatting after upgrading Telepact.
Add override: { 'files': '*.telepact.json', 'options': { 'parser': 'telepact-parse' } }Run 'npm install prettier-plugin-telepact' and ensure it's listed in package.json.