paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
684 stars 54 forks source link

Add prettier for nexus generated files #138

Closed sondh0127 closed 3 years ago

sondh0127 commented 3 years ago

We should add prettierConfig in makeSchema function in order to get the risk of husky hooks and schema format problem

https://nexusjs.org/docs/api/make-schema#prettierconfig In nexusSchema.ts

prettierConfig: join(process.cwd(), '.prettierrc.js'),
AhmedElywa commented 3 years ago

Thanks for your activation here. the easier way to add the nexus generated file to .prettierignore file

we have generated all files into the src/generated folder and for an issue with next.js v9.5.5 we moved nexus generated file to root folder and forget to add this file into ignoring file will add in next release.