User:DannyS712/Vue coding conventions

For now, just my own conventions for the GlobalWatchlist extension

If not addressed here or in the language-specific style guides, follow the recommendations of https://vuejs.org/v2/style-guide/

Template:

  • Pass one parameter/binding per line
  • Always provide a key when using v-for
    And put the key binding immediately after the v-for

Script:

  • Follow relevant language-specific conventions where possible
  • Module exports should be in a standard order - WHAT?

Styles:

  • Follow relevant language-specific conventions where possible

Components:

  • Every property must either be required or have a default, so an explicit value is always available
  • (IDEA) Every property must have whether it is required explicitly noted; i.e. set required: false rather than omitting