Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 769 Bytes

valid-text-component.md

File metadata and controls

17 lines (10 loc) · 769 Bytes

enforce valid <text> component (weex/vue/valid-text-component)

  • ⚙️ This rule is included in all of "plugin:weex/vue/essential", "plugin:weex/vue/strongly-recommended" and "plugin:weex/vue/recommended".

This rule checks if there is some component used in a text component or some text are not wrapped by component.

📖 Rule Details

This rule reports text components in the following cases:

  • The component has that contains a component. E.g <text><div></div></text>.
  • The text has used in a non-text component. E.g <div>Text</div>.

Ref