disallowVar

Disallows declaring variables with var.

Types: Boolean

Values: true

Version: ES6

Example

"disallowVar": true
Valid
let foo;
const bar;
Invalid
var baz;
Rule source
Test source