Add support for field-level ignore comments
Opened this issue · 2 comments
maxh commented
This would be useful for enabling rules selectively on existing schemas, for example the rule require-default-empty-arrays
could make sense as a field-level ignore.
sambostock commented
#388 implements this for field-name-mapping-snake-case
, although it does feel like there should be a generic way to automatically support it across all field level rules. 🤔
maxh commented
Nice, that's a nice step within the current framework and fine to add. It will be released shortly in 0.5.0
. Thanks!
As a more general solution, I'm imagining an alternative to prisma-lint-ignore-model
called prisma-lint-ignore-field
that ignores the field on the next line. But functionally expanding the current parameterized approach is about same.