Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 384 Bytes

no-implicit-buggy-globals.md

File metadata and controls

25 lines (16 loc) · 384 Bytes

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

💼 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