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

Chore: sort rules alphabetically #289

Merged
merged 5 commits into from
Aug 29, 2020
Merged

Conversation

magurotuna
Copy link
Member

get_recommended_rules and get_all_rules give us the provided rules, but currently their orders are not sorted alphabetically.
It would be better for them to be sorted, because Deno is going to use get_recommended_rules by denoland/deno#7222 and then the rules returned by it will be displayed in the same order when running deno lint --unstable --rules.
So in this PR, I put them in sorted order.

Besides, I added tests to make sure the rules are sorted alphabetically, which will help us detect unordered rules in future patches.

@magurotuna
Copy link
Member Author

I have also checked the rules in README and found there are missing rules and two rules have different codes from the original ESLint's rules. I have fixed them as well.

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks @magurotuna!

@bartlomieju bartlomieju merged commit 6409094 into denoland:master Aug 29, 2020
@magurotuna magurotuna deleted the sort-rules branch August 29, 2020 11:07
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

Successfully merging this pull request may close these issues.

2 participants