Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 572 Bytes

no-textarea-mustache.md

File metadata and controls

29 lines (20 loc) · 572 Bytes

Disallow mustaches in <textarea> (no-textarea-mustache)

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:

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

👍 Examples of correct code for this rule:

<template>
    <textarea v-model="message"></textarea>
</template>

🔧 Options

Nothing.