Skip to content

Instantly share code, notes, and snippets.

@ivopauly
Last active April 10, 2019 11:37
Show Gist options
  • Save ivopauly/338d579ab91b854be8b2991a50b09491 to your computer and use it in GitHub Desktop.
Save ivopauly/338d579ab91b854be8b2991a50b09491 to your computer and use it in GitHub Desktop.
Vue Custom Style Guide for sorting functions Components

Vue Custom Style Guide

Structure functions in components:

  • Options / Misc (name, delimiters, functional, model)
  • Options / Assets (components, directives, filters)
  • Options / Composition (parent, mixins, extends, provide, inject)
  • el / template
  • props
  • propsData
  • data
  • computed
  • watch
  • lifecycle hooks
  • methods
  • render
  • renderError

Component definitions

export.default {} in *.vue file

Vue.component(‘xxx, {}) in any file

Alternative

eslint-plugin-vue

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