Open TSMMark opened 2 years ago
Totals | |
---|---|
Change from base Build 715: | -0.05% |
Covered Lines: | 1009 |
Relevant Lines: | 1009 |
The fix could use optional chaining.
I'm not putting any effort into a PR that's been open since 2021 with no attention, but you can go ahead if you want
Fixes #221
The new rule in its current state in this branch only works with
map
as a proof of concept.The fix for this rule is unsafe as
_.map()
can accept any collection and not only Array. So it has the potential to break code such as:Open to feedback about how to get this rule actually in a state where it could be merged. Thanks