-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Hey guys!
I currently "maintain" a repo called prisma-case-format, and I'd like not to, so I'm soliciting you guys to implement some of my scope. I initially started that tool as a way to do one-time "introspection cleanups" for fresh prisma projects using existing database schemas, but more and more my users have asked for features that I would consider to be more "linterish".
It looks like the ambitions of your project could potentially be a superset of my project's functionality, so if you guys implement issue autofixing in prisma-lint, I can deprecate my repo and direct my users to yours instead!
The current scope of functionality I support is:
- Allowing users to specify "case-conventions" on
model/view/field/enums:PascalCase,snake_caseandcamelCase. - Allowing users to specify "plurality" for
model/view/field/enums: For example, our database team said that we're going to use singular (usernotusers) conventions, but our team wants to use plural model names (Users, notUser). - Using the above to specify two separate sets of case conventions: one for the actual database, and one for the generated models. For example, our database team wants everything in our models to be
snake_casebecause Postgres, for instance. By contrast, our team wants to do model names inPascalCaseand field names incamelCase. - Allowing users to capture specific name deviations: For example, our team inherited a database with semi-wonky names like
PK_ID @id Int, that we'd like to massage to beid Int @id @map("PK_ID"). - Support for
next-auth, which probably isn't that important to support explicitly as long as you support lint rules that can vary per model or per field.
I've got an extensive set of test cases if it matters.
Thanks, and happy new year!
Metadata
Metadata
Assignees
Labels
No labels