-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FIX: use not checked instead of == to hopefully make the linter happy? #228
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
Hm, so I see why the While this works for both cases, where it's a regular list item, and where prefixed with a The problem seems to be: A property called The problem as I see it is that we try and use this same I'd advocate for adding something like However, I'd also be extremely happy if it were possible to make a release with this fix (or a version of it) as currently all list formatting is broken 😢 - if the above refactor sounds like a good idea, am happy to give it a shot, but would rather it not hold up this fix. Thank you again for this project! |
I have moved the logic around slightly to have the |
Thanks for your work on this @batpad -- I will aim to get a release out today. |
@rowanc1 ha, the |
We will aim to get the release out in the next few days - our automated release infrastructure is broken at the moment. :( cc @agoose77 |
Was just looking at 2b288cd and it looks like a nice fix, except it makes the
linter
unhappy because it does not like the==
operator.For various reasons, most Javascript style guides will discourage the use of
==
since the rules for fuzzy equality in javascript can be a bit obscure. Here I try changing that to a!checked
which should do the same thing - i.e. check if thechecked
variable isfalsey
- so that would be true fornull
orundefined
, which I think was the intention behind the==
? Am not fully sure how to test this, but I'll try - if anyone is able to verify though, I do hope this both fixes the issue and makes the linter happy.