Renames the private __isNodejsScope to isGlobalReturn to formally make it part of the interface and available in ESLint.
I chose isGlobalReturn instead of isNodejsScope because the typescript-eslint scope manager already exposes a method called isGlobalReturn, so copying that would ensure that the most popular alternative scope manager already has the same method.
Renames the private __isNodejsScope to isGlobalReturn to formally make it part of the interface and available in ESLint.
I chose
isGlobalReturn
instead ofisNodejsScope
because the typescript-eslint scope manager already exposes a method calledisGlobalReturn
, so copying that would ensure that the most popular alternative scope manager already has the same method.Refs eslint/eslint#16999