Commit c229c87
committed
ci: enforce drizzle _query on every PR
Adds a 'Drizzle _query enforcement' step to the lint job that runs
`pnpm drizzle:query-check`. The oxlint rule already blocks the common
cases (db / ctx.db / this.db / tx / trx); the ts-morph verifier catches
the type-aware long tail so a renamed drizzle db can't sneak past. Both
exit non-zero on a fresh `.query` — verified by injecting a canary.1 parent 0324408 commit c229c87
2 files changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
131 | 134 | | |
132 | 135 | | |
133 | 136 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
176 | | - | |
| 176 | + | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
| |||
0 commit comments