nursery/noConvexProcessEnv
nursery · since 2.6.10
Unsafe autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"noConvexProcessEnv": "error"
}
}
}
}{
"dependencies": { "convex": "*" }
}const apiKey = process.env.GIPHY_KEY;const { GIPHY_KEY } = process.env;{
"dependencies": { "convex": "*" }
}import { env } from "./_generated/server";
const apiKey = env.GIPHY_KEY;import { defineApp } from "convex/server";
import { v } from "convex/values";
const app = defineApp({
env: { GIPHY_KEY: v.string() },
});
export default app;Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noConvexProcessEnv
nursery · since 2.6.10
{
"linter": {
"rules": {
"nursery": {
"noConvexProcessEnv": "error"
}
}
}
}Require the object syntax when registering Convex queries, mutations, and actions.
Disallow calling .filter() on a Convex database query.
Disallow Convex database indexes whose fields are the first fields of another index on the same table.
Disallow reading the current time or generating random values in Convex queries.
Disallow scheduling Convex cron jobs at the start of the hour.