Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 381 Bytes

paragraph-order.md

File metadata and controls

27 lines (22 loc) · 381 Bytes

automatically add order prop for Paragraph element

This rule is fixable.

Fail

<template>
  <Content>
    <Paragraph :order="1" />
    <Paragraph />
    <Paragraph :order="foo" />
  </Content>
</template>

Pass

<template>
  <Content>
    <Paragraph :order="0" />
    <Paragraph :order="1" />
    <Paragraph :order="2" />
  </Content>
</template>