Uh oh!
There was an error while loading. Please reload this page.
benchmark,lib: var to const - #26915
Conversation
gengjiawen
commented
Mar 26, 2019
I am +1 on this. |
tniessen
left a comment
There was a problem hiding this comment.
I know we have shot these PRs down multiple times, but this one is only 343 lines and if that's all it takes to make all possible var → const replacements, I think we should do it.
nodejs-github-bot
commented
Mar 26, 2019
Trott
commented
Mar 26, 2019
|
BridgeAR
commented
Mar 26, 2019
@Trott eslint itself should warn in case the scope is not correct anymore. There could in theory also be changes that can not be auto detected but that's unlikely. Especially with our test suite. |
Trott
commented
Mar 26, 2019
Ah, yes, of course.
👍 |
BridgeAR
commented
Mar 28, 2019
Rebased due to conflicts. |
nodejs-github-bot
commented
Mar 28, 2019
nodejs-github-bot
commented
Mar 28, 2019
nodejs-github-bot
commented
Mar 29, 2019
targos
commented
Mar 30, 2019
Landed in f86f573 |
This came up recently again. I just ran a modified eslint rule against lib and benchmark and I have no strong opinion about actually doing this and I am absolutely fine with closing this again. It's just there to resolve a comment in the referenced PR.
Note: I did not update any eslint rules as there is no explicit rule to do this. Instead, I just modified the
prefer-construle to match againstvarinstead oflet.Refs: #26679
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes