# wxml/report-interpolation-error

# Backgroud

{{}} interpolation

Mustache style interpolation in wxml

eslint-plugin-wxml using @wxml/parser as parser to parse interpolation content, it provide interpolation syntax error message. If you think this rules contain bug, please report it by github issue (opens new window).

# Motivation

hint interpolation syntax error in development time, save developer's time.

<view> <view style="idx-{{isOdd ? 'single'}}" /> {{ a + }} </view>
Now loading...

💡 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/report-interpolation-error": "error" }

# Version

This rule was introduced in eslint-plugin-wxml v0.7.0

# Implementation