correctness/noProcessGlobal
correctness · since 2.0.0
Safe autofix
biome.json
{
"linter": {
"rules": {
"correctness": {
"noProcessGlobal": "error"
}
}
}
}const foo = process.env.FOO;import process from "node:process";
const foo = process.env.FOO;const foo = globalThis;
const bar = foo.process;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.
correctness/noProcessGlobal
correctness · since 2.0.0
{
"linter": {
"rules": {
"correctness": {
"noProcessGlobal": "error"
}
}
}
}Disallow pseudo-elements inside :is(), :where(), :not() and :has().
Replaces usages of forwardRef with passing ref as a prop.