Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 758 Bytes

no-textarea-mustache.md

File metadata and controls

31 lines (19 loc) · 758 Bytes

disallow mustaches in <textarea> (vue/no-textarea-mustache)

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

Interpolation on textareas (<textarea>{{text}}</textarea>) won't work. Use v-model instead.

https://vuejs.org/v2/guide/forms.html#Multiline-text

📖 Rule Details

This rule reports mustaches in <textarea>.

👎 Examples of incorrect code for this rule:

<textarea>{{ message }}</textarea>

👍 Examples of correct code for this rule:

<textarea v-model="message"/>

🔧 Options

Nothing.

Related links