no-process-global

Disallows the use of NodeJS process global.

NodeJS and Ende 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".

This rule is off by default . To opt in, add it to your ende.json:

{
  "lint": {
    "rules": {
      "include": ["no-process-global"]
    }
  }
}

Invalid:

// foo.ts
const foo = process.env.FOO;

Valid:

// foo.ts
import process from "node:process";

const foo = process.env.FOO;