Closed kibertoad closed 6 months ago
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? https://github.com/loop-payments/prisma-lint/pull/356
This is perfect, thanks!
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
.