nursery/noConvexTopOfHourCrons
nursery · since 2.6.10
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"noConvexTopOfHourCrons": "error"
}
}
}
}Disallow scheduling Convex cron jobs at the start of the hour.
crons.hourly("cleanup", { minuteUTC: 0 }, internal.tasks.cleanup);crons.daily("report", { hourUTC: 9, minuteUTC: 0 }, internal.tasks.report);crons.cron("nightly", "0 3 * * *", internal.tasks.nightly);crons.hourly("cleanup", internal.tasks.cleanup);
crons.daily("nightly", { hourUTC: 3 }, internal.tasks.nightly);
crons.hourly("cleanup", { minuteUTC: 37 }, internal.tasks.cleanup);
crons.cron("nightly", "17 3 * * *", internal.tasks.nightly);
crons.interval("sync", { minutes: 15 }, internal.tasks.sync);Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noConvexTopOfHourCrons
nursery · since 2.6.10
{
"linter": {
"rules": {
"nursery": {
"noConvexTopOfHourCrons": "error"
}
}
}
}Disallow reading the current time or generating random values in Convex queries.
Disallow calling .filter() on a Convex database query.
Disallow lower-specificity selectors after higher-specificity selectors.
Require .where() to be called when using .delete() with Drizzle ORM.