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

Add autofix to no-extra-semicolons #3574

Merged
merged 1 commit into from
Aug 22, 2018
Merged

Conversation

ota-meshi
Copy link
Member

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

closes #3572

Is there anything in the PR that needs further explanation?

ex.

code:

 ;
a {;}
a { color: red; };

fixed:

 
a {}
a { color: red; }

@@ -63,620 +64,779 @@ testRule(rule, {
reject: [
{
code: ";",
fixed: "",
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't the tests in this config: [true], section still include a single semi-colon?

Copy link
Member Author

Choose a reason for hiding this comment

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

Are you saying it is better not to delete single semicolons?
if so, I think that this should be deleted because it is an extra semicolon.

Copy link
Member

Choose a reason for hiding this comment

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

if so, I think that this should be deleted because it is an extra semicolon.

Agreed. I think this semicolon is redundant and should be removed when autofixed.

@ota-meshi ota-meshi assigned ota-meshi and unassigned ota-meshi Aug 19, 2018
Copy link
Member

@jeddy3 jeddy3 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@ntwb ntwb merged commit 00e1e26 into master Aug 22, 2018
@ntwb ntwb deleted the add-autofix/no-extra-semicolons branch August 22, 2018 02:49
@ntwb
Copy link
Member

ntwb commented Aug 22, 2018

Changelog in 0dce74b

  • Added: no-extra-semicolons autofix (#3574).

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.

Add autofix to no-extra-semicolons
3 participants