siliushi / VUEFormatter

formate your vue code
26 stars 5 forks source link

Space before function #2

Closed jernejrostan closed 6 years ago

jernejrostan commented 7 years ago

Most linters want a space before function. Is it possible to add this ?

jericopulvera commented 7 years ago

It is possible.

jernejrostan commented 6 years ago

how? :)

rashnk commented 6 years ago

how ?

"space_after_anon_function": true, // Should the space before an anonymous function's parens be added, "function()" vs "function ()"
      "space_before_conditional": true, // Should the space before conditional statement be added, "if(true)" vs "if (true)"

its not working , space is not added

rashnk commented 6 years ago
props: ['chapter', 'option'],
  data() {
    return {
      pscroll: {
        width: '0',
        height: (height - 128) + 'px'
      }
    }
  },

in this example, data () space is not added