Skip to content
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

Rule suggestion: Prefer difference over without #212

Open
garyking opened this issue Aug 8, 2019 · 0 comments
Open

Rule suggestion: Prefer difference over without #212

garyking opened this issue Aug 8, 2019 · 0 comments

Comments

@garyking
Copy link
Contributor

garyking commented Aug 8, 2019

Since difference and without seem to be the same thing, except that the former accepts an array and the latter accepts variables, then create a new rule to prefer only difference, for those who want to enable it. This would improve consistency, and makes it easier to use difference without wondering if it's the one that accepts arrays or separate items.

If one of the two has to be chosen, then difference is preferred, since it also has useful differenceBy and differenceWith variations.

@garyking garyking changed the title New rule: Prefer difference over without Rule suggestion: Prefer difference over without Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant