- Disallow variable and function declarations in the global scope
This rule disallows var and named function declarations at the top-level script scope. This does not apply to ES and CommonJS modules since they have a module scope.
You can check them out here.