Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up`no-undef-init` makes defining a const with undefined impossible #456
Comments
This comment has been minimized.
This comment has been minimized.
I think I agree; I don't see a compelling reason to relax the rule - wonder what others think |
This comment has been minimized.
This comment has been minimized.
|
@despairblue What's the error you get? |
This comment has been minimized.
This comment has been minimized.
|
@feross on one computer I get Thanks for the help |
despairblue
closed this
Mar 11, 2016
This comment has been minimized.
This comment has been minimized.
|
Cheers! |
lock
bot
locked as resolved and limited conversation to collaborators
May 10, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
despairblue commentedMar 10, 2016
This may look weird, but it's part of a spec and I want to have all fixtures as consts, instead of copying them to all assertions. Maybe later I decide that the function I'm testing should work with empty strings instead of
undefined, so I can simply change one line.I do see that this is a very specific edge case. If this is a wont-fix, I'm fine with it. I can simply change it to
let nothing1.