prefer-global/process
UnreleasedConfiguration
rslint.config.ts
Enforce consistent use of the global process variable or the process module.
Options
This rule accepts one string option:
"always"(default): use the globalprocessvariable."never": import or require theprocessmodule.
The rule recognizes both process and node:process module names, including
ESM imports and re-exports, require(), and process.getBuiltinModule().
Global references respect local bindings and configured globals.
Enable Node.js globals in the configuration:
always
Incorrect:
Correct:
never
Incorrect:
Correct:
This rule does not provide automatic fixes or suggestions.