This teaches field-name-mapping-snake-case how to ignore individual fields, instead of needing to disable the rule for all fields within a model.
model Foo {
- /// prisma-lint-ignore-model field-name-mapping-snake-case
+ /// prisma-lint-ignore-model field-name-mapping-snake-case legacyField
legacyField Bar // Should be ignored
badField Bar // Should be flagged
goodField Bar @map("good_field")
}
This teaches
field-name-mapping-snake-case
how to ignore individual fields, instead of needing to disable the rule for all fields within a model.