Skip to content

Fix: vue/script-indent bug (fixes #344) #346

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

Merged
merged 2 commits into from
Jan 15, 2018
Merged

Conversation

mysticatea
Copy link
Member

@mysticatea mysticatea commented Jan 12, 2018

Fixes #344.

html-indent and script-indent rules have two bugs:

  1. A line which has semicolon was adjusted to the next statement. This triggered a problem to dangling statements. The following cases should be valid. But the former was not:

    if (x)
      a;
    b
    if (x)
      a
    ;b
  2. It forgot handling property shorthands.

@michalsnik michalsnik merged commit 26ab87a into master Jan 15, 2018
@michalsnik michalsnik deleted the script-indent/issue344 branch January 15, 2018 23:20
@mysticatea
Copy link
Member Author

mysticatea commented Jan 25, 2018

@michalsnik Would you make a release for this bug fix? (I don't have the permission to publish)

@michalsnik
Copy link
Member

Sorry, I was quite busy.. Released just now https://github.com/vuejs/eslint-plugin-vue/releases/tag/v4.2.1

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

Successfully merging this pull request may close these issues.

2 participants