prefer-global/console
UnreleasedConfiguration
rslint.config.ts
Enforce consistent use of the global console variable or the console module.
Options
"always"(default): use the globalconsolevariable."never": loadconsolefrom a module instead of using the global variable.
With "always", these module references are incorrect:
Use the global variable instead:
With "never", using the global variable is incorrect:
Load the module instead:
The rule recognizes CommonJS loads, process.getBuiltinModule(), static imports
and re-exports, including the node: prefix. Local bindings that shadow globals
are respected. The rule provides no automatic fixes or suggestions.