suspicious/noDrizzleUpdateWithoutWhere
suspicious · since 2.4.8
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noDrizzleUpdateWithoutWhere": "error"
}
}
}
}Require .where() to be called when using .update() with Drizzle ORM.
await db.update(users).set({ name: "John" });await db.update(users).set({ name: "John" }).where(eq(users.id, 1));Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noDrizzleUpdateWithoutWhere
suspicious · since 2.4.8
{
"linter": {
"rules": {
"suspicious": {
"noDrizzleUpdateWithoutWhere": "error"
}
}
}
}Require .where() to be called when using .delete() with Drizzle ORM.
Require unique argument names for fields and directives.
Disallow lower-specificity selectors after higher-specificity selectors.
Disallow duplicate custom properties within declaration blocks.