{"id":20440,"library":"prettier-plugin-telepact","title":"Prettier Plugin for Telepact","description":"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.","status":"active","version":"1.0.0-alpha.301","language":"javascript","source_language":"en","source_url":"https://github.com/telepact/telepact","tags":["javascript","prettier","plugin","telepact","typescript"],"install":[{"cmd":"npm install prettier-plugin-telepact","lang":"bash","label":"npm"},{"cmd":"yarn add prettier-plugin-telepact","lang":"bash","label":"yarn"},{"cmd":"pnpm add prettier-plugin-telepact","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency; this is a plugin for Prettier","package":"prettier","optional":false}],"imports":[{"note":"No direct import in code; configured via .prettierrc or Prettier API options.","symbol":"prettier-plugin-telepact","correct":"Add to Prettier plugins array in config: 'plugins': ['prettier-plugin-telepact']"}],"quickstart":{"code":"// .prettierrc\n{\n  \"plugins\": [\"prettier-plugin-telepact\"],\n  \"overrides\": [\n    {\n      \"files\": \"*.telepact.json\",\n      \"options\": {\n        \"parser\": \"telepact-parse\"\n      }\n    }\n  ]\n}\n\n// Run: npx prettier --write '**/*.telepact.json'","lang":"javascript","description":"Configure Prettier to use the Telepact plugin and format schema files."},"warnings":[{"fix":"Add override in .prettierrc: { 'files': '*.telepact.json', 'options': { 'parser': 'telepact-parse' } }","message":"The plugin only formats files when the parser is explicitly set to 'telepact-parse'. Without the parser override, Prettier will fall back to the default JSON parser.","severity":"gotcha","affected_versions":">=1.0.0-alpha.301"},{"fix":"Only apply this plugin to .telepact.json files via overrides.","message":"The plugin is only needed for .telepact.json files; .telepact.yaml files can be formatted with standard YAML plugins. Using this plugin on YAML files may produce unexpected results.","severity":"gotcha","affected_versions":">=1.0.0-alpha.301"},{"fix":"Pin to a specific version and test formatting after upgrading Telepact.","message":"The plugin is in alpha and may undergo breaking changes. Schema structure changes in future Telepact releases may cause formatting inconsistencies.","severity":"deprecated","affected_versions":">=1.0.0-alpha.301"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Add override: { 'files': '*.telepact.json', 'options': { 'parser': 'telepact-parse' } }","cause":"Missing parser override in Prettier configuration.","error":"Error: No parser could be inferred for file: example.telepact.json"},{"fix":"Run 'npm install prettier-plugin-telepact' and ensure it's listed in package.json.","cause":"Plugin not installed or not in node_modules.","error":"Cannot find module 'prettier-plugin-telepact'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}