var-only-at-top-level

Marks all var declarations that are not at the top level invalid.

Examples of incorrect code for this rule:

{ var foo; }
function() { var bar; }

Examples of correct code for this rule:

var foo;
{ let foo; }
function () { let bar; }