nursery/noDrizzleDbObjectInsideTransaction
nursery · since 2.6.8
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"noDrizzleDbObjectInsideTransaction": "error"
}
}
}
}Disallow using a Drizzle ORM instance inside its own transaction callback.
await db.transaction(async (tx) => {
await db.insert(users).values({ name: "John" });
});await db.transaction(async (tx) => {
await tx.insert(users).values({ name: "John" });
});Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noDrizzleDbObjectInsideTransaction
nursery · since 2.6.8
{
"linter": {
"rules": {
"nursery": {
"noDrizzleDbObjectInsideTransaction": "error"
}
}
}
}Discourages the disabled attribute on form controls and on elements that act as buttons.
Limit how complex selectors can be, and disallow chosen parts of selectors.