A Prettier plugin that automatically formats Prisma schema files using Prisma's official formatter.
prettier-plugin-prisma is a Prettier plugin that automatically formats Prisma schema files. It uses Prisma's official `prisma-fmt-wasm` engine to ensure schemas are consistently styled and readable, integrating directly into Prettier's ecosystem.
Developers using Prisma ORM who want to maintain consistent formatting in their `.prisma` schema files as part of their code formatting workflow.
It provides a reliable, officially-aligned formatting solution for Prisma schemas without requiring separate tooling, seamlessly extending Prettier's capabilities to Prisma files.
Prettier plugin for Prisma
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Uses Prisma's prisma-fmt-wasm engine, ensuring formatting reliability and alignment with Prisma's own standards, as noted in the README.
Works as a standard Prettier plugin, leveraging existing configuration and editor setups without requiring additional tooling.
Automatically enforces uniform code style across Prisma schema definitions, improving readability and maintainability.
Respects Prettier's tab width configuration for indentation, allowing consistency with the rest of the codebase.
Only supports tab width; other Prettier options like print width or semi-colons don't apply, restricting formatting flexibility.
All feature requests and fixes depend on Prisma's prisma-fmt-wasm development, leading to potential delays or lack of control over enhancements.
Exclusively formats .prisma files, adding a dependency without broader utility in projects with diverse file types.