GS/BS
← Standards directory
Code quality

Prisma Lint.

Enforce Prisma schema conventions

Choose rules for model and field naming, relation consistency and schema hygiene. Enable the intended rules explicitly so a clean run checks something meaningful.

Prisma

Community rubric · v1

The evidence

Evidence coverage4 / 8
4 supported · 4 unresolved

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • Definition

    Verified

    The require-field rule can require named fields on Prisma models; all rules are disabled until selected.

    Cited source ↗
  • Measurement

    Verified

    The documented JSON formatter emits findings for selected Prisma schema rules. Examples show missing fields and incorrect field mappings.

    Cited source ↗
  • Conformance

    Unknown

    No reviewed evidence is recorded for this dimension.

    What would demonstrate a violation? Contribute evidence ↗

  • CI enforcement

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can a change trigger a useful check? Contribute evidence ↗

  • Getting started

    Verified

    Install the dev dependency, enable rules in a project config and run the CLI against a Prisma schema. The README shows error and clean-file output for sample inputs.

    Cited source ↗
  • Real-world adoption

    Verified

    CodeRabbit runs Prisma Lint on changed .prisma schemas and recognizes repository rules configurations such as .prismalintrc.json.

    Cited source ↗
  • Agent guidance

    Unknown

    No reviewed evidence is recorded for this dimension.

    Can an agent act on a specific finding? Contribute evidence ↗

  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

    Does the practice work in two agent harnesses? Contribute evidence ↗

Use this standard

Run the check with the tool installed and configured for your project.

npx --no-install prisma-lint

Agent prompt

Use Prisma Lint in this repository to meet this standard: Enforce Prisma schema conventions. Choose rules for model and field naming, relation consistency and schema hygiene. Enable the intended rules explicitly so a clean run checks something meaningful. Inspect the repository configuration, record the baseline and exact reproduction steps, then add the smallest repeatable check that detects a regression.
Read the agent skill ↗

Primary source

Prisma Lint documentation ↗