Appearance
vue/no-textarea-mustache
禁止
<textarea>中的胡须
- ⚙️ 此规则包含在
"plugin:vue/essential"、*.configs["flat/essential"]、"plugin:vue/vue2-essential"、*.configs["flat/vue2-essential"]、"plugin:vue/strongly-recommended"、*.configs["flat/strongly-recommended"]、"plugin:vue/vue2-strongly-recommended"、*.configs["flat/vue2-strongly-recommended"]、"plugin:vue/recommended"、*.configs["flat/recommended"]、"plugin:vue/vue2-recommended"和*.configs["flat/vue2-recommended"]中。
📖 规则详情
此规则报告 <textarea> 中的胡须。
¥This rule reports mustaches in <textarea>.
注意
文本区域 (<textarea>{{text}}</textarea>) 上的插值将不起作用。改用 v-model。https://vuejs.org/guide/essentials/forms.html#multiline-text
¥Interpolation on textareas (<textarea>{{text}}</textarea>) won't work. Use v-model instead. https://vuejs.org/guide/essentials/forms.html#multiline-text
🔧选项
¥🔧 Options
无。
¥Nothing.
📚扩展阅读
¥📚 Further Reading
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v3.0.0 中引入
¥This rule was introduced in eslint-plugin-vue v3.0.0
🔍代码实现
¥🔍 Implementation