suspicious/noUndeclaredEnvVars
suspicious · since 2.3.10
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noUndeclaredEnvVars": "error"
}
}
}
}const value = process.env.MY_VAR;// NODE_ENV is always allowed
const value = process.env.NODE_ENV;Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noUndeclaredEnvVars
suspicious · since 2.3.10
{
"linter": {
"rules": {
"suspicious": {
"noUndeclaredEnvVars": "error"
}
}
}
}Require the TanStack Query QueryClient to be created once, not on every render.
Require TanStack Query options to be created with queryOptions().
Enforce that onMutate comes before onError and onSettled in the options of TanStack Query mutations.
Enforce a consistent property order in the options of TanStack Query infinite query functions.