suspicious/noDrizzleDeleteWithoutWhere
suspicious · since 2.4.8
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noDrizzleDeleteWithoutWhere": "error"
}
}
}
}Require .where() to be called when using .delete() with Drizzle ORM.
await db.delete(users);await db.delete(users).where(eq(users.id, 1));Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noDrizzleDeleteWithoutWhere
suspicious · since 2.4.8
{
"linter": {
"rules": {
"suspicious": {
"noDrizzleDeleteWithoutWhere": "error"
}
}
}
}Disallow lower-specificity selectors after higher-specificity selectors.
Require .where() to be called when using .update() with Drizzle ORM.
Require unique argument names for fields and directives.
Disallow scheduling Convex cron jobs at the start of the hour.