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

Fixed 5 autofixes #3620 #3621

Merged
merged 2 commits into from
Aug 29, 2018
Merged

Fixed 5 autofixes #3620 #3621

merged 2 commits into from
Aug 29, 2018

Conversation

ota-meshi
Copy link
Member

Which issue, if any, is this issue related to?

fixed #3620

Is there anything in the PR that needs further explanation?

e.g. "No, it's self explanatory."

@@ -49,7 +49,7 @@ const rule = function(expectation, options, context) {
? ruleNode.raws.selector.raw
: ruleNode.selector;
commaIndices
.sort()
.sort((a, b) => a - b)
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe .sort((a, b) => b - a) is a bit better than .sort((a, b) => a - b).reverse()

@ota-meshi
Copy link
Member Author

@boccob
I changed sort.reverse to one sort.

@jeddy3 jeddy3 merged commit 7e90d05 into master Aug 29, 2018
@jeddy3 jeddy3 deleted the fix/number-sort branch August 29, 2018 09:15
@jeddy3
Copy link
Member

jeddy3 commented Aug 29, 2018

  • Fixed: autofix for 5 whitespace rules (#3621).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Fix autofix for 5 whitespace rules
5 participants