# wxml/no-inconsistent-tagname
# Motivation
Found startTag name and endTag name not equal at development stage.
<!-- ✓ GOOD -->
<view
wx:for="{{goodsList}}"
wx:key="goodsId"
>
{{item.name}}
</view>
<same-tag-name>
{{"tag name must be equal"}}
</same-tag-name>
<!-- ✗ BAD -->
<view
wx:for="{{goodsList}}"
wx:key="id-{{goodsId}}"
>
{{item.name}}
</viw>
💡 tips
You can edit code via online editor, it's online REPL, try to fix eslint problem !
# Config
No special options, normal config is ok
{ "wxml/no-inconsistent-tagname": "error" }
# Version
This rule was introduced in eslint-plugin-wxml v0.7.2