Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 581 Bytes

lifecycle-order.md

File metadata and controls

31 lines (23 loc) · 581 Bytes

lifecycle-order

Ensures that all Stencil lifecycles are written in correct order.

Config

Order could be alphabetical or call-order

This is the correct order for call-order:

  • connectedCallback
  • componentWillLoad
  • componentDidLoad
  • componentWillRender
  • componentDidRender
  • componentShouldUpdate
  • componentWillUpdate
  • componentDidUpdate
  • componentDidUnload
  • disconnectedCallback
  • render

Usage

{ "@d0whc3r/stencil/lifecycle-order": ["error", "alphabetical"] }
{ "@d0whc3r/stencil/lifecycle-order": ["error", "call-order"] }