Closed gaiety-deque closed 1 month ago
adds no-var rule to eslint (this also pairs well with the already enabled prefer-const and no-redeclare)
no-var
prefer-const
no-redeclare
Who else does this?
Why do this?
Gaiety's explanation: "let works the way most devs think var works. scope leaking and variable hoisting is a messy confusing idea, JS got updated for a reason" also it's 2024, this isn't too controversial anymore
let
var
<< Describe the changes >>
Closes:
Closing this in favor of doing smaller PR's piece by piece over time, but I'll reference the changes here as the ultimate goal.
adds
no-var
rule to eslint (this also pairs well with the already enabledprefer-const
andno-redeclare
)Who else does this?
Why do this?
Gaiety's explanation: "
let
works the way most devs thinkvar
works. scope leaking and variable hoisting is a messy confusing idea, JS got updated for a reason" also it's 2024, this isn't too controversial anymore<< Describe the changes >>
Closes: