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

Get troubles when using brace-style #2

Open
zhihuiFan opened this issue Jan 29, 2017 · 0 comments
Open

Get troubles when using brace-style #2

zhihuiFan opened this issue Jan 29, 2017 · 0 comments

Comments

@zhihuiFan
Copy link

zhihuiFan commented Jan 29, 2017

Here is a piece code

<template>
  <div>
  </div>
</template>

<script>
export default {
  mounted: function() {
    var a = [{
      a: 1,
      b: 2
    }];
    var b = {
      b: 1
    }
  }
}
</script>

Actually, I want it to be

export default {
  mounted: function() {
    var a = [{ a: 1, b: 2}];
    var b = { b: 1 }
  }
}

I used
vue-beautify -s 2 -r -S=keep -b collapse-preserve-inline test.vue
to format.

I think js-beautify has fixed this issue already in beautifier/js-beautify#315 , how should I use it in vue-beautify?

zhifan@ubuntu:~ $ js-beautify -v
1.6.8

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

No branches or pull requests

1 participant