Skip to content

feat: format generated code using Prettier #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 22, 2021

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Jan 22, 2021

Q A
Bug fix? yes
New feature? yes
BC breaks? no
Deprecations? no
Tickets #prett
License MIT
Doc PR n/a

Always generate pretty-printed code using Prettier 🎉

This PR also fixes some bugs in the Next.js generator because another nice side effect of using Prettier is that the validity of the generated code is now always checked.

@dunglas dunglas merged commit b8829e0 into api-platform:master Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant