Rules Overview
All 12 rules organized by category
Quality
| Rule | Severity | Description |
|---|---|---|
| no-select-star | Error | Disallow implicit SELECT * |
| no-missing-limit | Warning | Require LIMIT on table queries |
| no-unbounded-find | Error | Require where on findFirst/findUnique |
Correctness
| Rule | Severity | Description |
|---|---|---|
| no-always-true-where | Error | Catch where(true) and equivalent |
| no-missing-await | Error | Flag Drizzle queries without await |
Performance
| Rule | Severity | Description |
|---|---|---|
| no-query-in-loop | Warning | Detect queries inside loops |
| no-query-in-callback | Warning | Detect queries inside callbacks |
| no-n-plus-one | Warning | Detect repeated same-table queries |
Security
| Rule | Severity | Description |
|---|---|---|
| no-raw-sql-dangerous | Error | Flag interpolated raw SQL |
Schema
| Rule | Severity | Description |
|---|---|---|
| no-unindexed-filter | Warning | Filter on unindexed columns |
| no-unknown-column | Error | Reference columns not in schema |
| no-missing-foreign-key | Warning | Include relations without FK |
Schema-aware rules require a [database] section in your config pointing to a Prisma schema file.
Last updated on