-
Notifications
You must be signed in to change notification settings - Fork 65
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: Suggest sortBy if using orderBy with just asc
#190
Comments
Thanks for the suggestion! |
That sounds good! The idea of using |
Fixed in |
Just a note, that the rule isn't listed in the readme. |
Would it be a good rule idea to suggest to use
sortBy
if usingorderBy
with justasc
?So
_.orderBy(arr, 'text', 'asc')
would suggest to be replaced by_.sortBy(arr, 'text')
instead, or_.orderBy(arr, ['a', 'b'], ['asc', 'asc'])
would suggest to be replaced by_.sortBy(arr, ['a', 'b'])
instead.The text was updated successfully, but these errors were encountered: