Disallow implicit global variables (github/no-implicit-buggy-globals)

February 8, 2023 ยท View on GitHub

๐Ÿ’ผ This rule is enabled in the โœ… recommended config.

Rule Details

๐Ÿ‘Ž Examples of incorrect code for this rule:

var foo = 1

๐Ÿ‘ Examples of correct code for this rule:

;(function () {
  const foo = 1
})()

Version

4.3.2