# wxml/no-dynamic-wx-key
# Motivation
This rule enforce developer don't set dynamic wx:key
<!-- ✓ GOOD -->
<view
wx:for="{{goodsList}}"
wx:key="goodsId"
>
{{item.name}}
</view>
<!-- ✗ BAD -->
<view
wx:for="{{goodsList}}"
wx:key="id-{{goodsId}}"
>
{{item.name}}
</view>
💡 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-dynamic-wx-key": "error" }
# Version
This rule was introduced in eslint-plugin-wxml v0.3.0