-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support exceptions for the Expected singular model name. model-name-grammatical-number
error
#354
Comments
Makes sense. Internally we simply disable the rule with in-line comments on such models, but adding this to the config is a good idea. |
Example: model ArtifactMetadata {
/// prisma-lint-ignore-model model-name-grammatical-number
} |
Yeah, that's what we did as a short-term solution, but having proper config would be nice :D |
Does this support your use case? #356 |
This is perfect, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Similarly to how
model-name-mapping-snake-case
has a list of compound words,model-name-grammatical-number
should support a list of exceptions too. E. g.settings
orscissors
are singular, it makes no sense to create a tablesetting
orscissor
.The text was updated successfully, but these errors were encountered: