no-process-globals
Recommended
Disallows the use of NodeJS process
global.
Disallows the use of NodeJS process
global.
NodeJS and Deno expose process
global but they are hard to statically analyze
by tools, so code should not assume they are available. Instead,
import process from "node:process"
.
Invalid:
// foo.ts
const foo = process.env.FOO;
Valid:
// foo.ts
import process from "node:process";
const foo = process.env.FOO;