siliushi / VUEFormatter

formate your vue code
26 stars 5 forks source link

`wrap_line_length` cannot be overridden #6

Open diachedelic opened 7 years ago

diachedelic commented 7 years ago

I want my HTML to wrap at about 50 chars (because the wrapping behaviour for HTML is a bit buggy for elements with lots of attributes). So my config looks like this:


{
  "vue": {
    ...
    "wrap_line_length": 50, // Lines should wrap at next opportunity after this number of characters (0 disables)
    "js": {
      ...
      "wrap_line_length": 80 // Lines should wrap at next opportunity after this number of characters (0 disables)
    }
  }
}

But now my JS wraps at 50 chars.