nursery/useConvexExplicitTableIds
nursery · since 2.6.10
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"useConvexExplicitTableIds": "error"
}
}
}
}Require the table name as the first argument of Convex database calls.
const message = await ctx.db.get(messageId);await ctx.db.patch(messageId, { text: "updated" });await ctx.db.replace(messageId, { text: "replaced", author: "Alice" });const message = await ctx.db.get("messages", messageId);
await ctx.db.patch("messages", messageId, { text: "updated" });
await ctx.db.replace("messages", messageId, { text: "replaced", author: "Alice" });
await ctx.db.delete("messages", messageId);
const file = await ctx.db.system.get("_storage", storageId);Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/useConvexExplicitTableIds
nursery · since 2.6.10
{
"linter": {
"rules": {
"nursery": {
"useConvexExplicitTableIds": "error"
}
}
}
}Require an args validator in Convex queries, mutations, and actions.
Require a reason when using the @deprecated directive.
Require public Convex functions to call an access control function.
Require a generic fallback in font-family lists.
Enforce JSON keys with consistent Unicode representation.
Require a name for every explicit GraphQL operation definition.