# vue/no-useless-mustaches
disallow unnecessary mustache interpolations
- 🔧 The
--fix
option on the command line (opens new window) can automatically fix some of the problems reported by this rule.
# 📖 Rule Details
This rule reports mustache interpolation with a string literal value.
The mustache interpolation with a string literal value can be changed to a static contents.
# 🔧 Options
{
"vue/no-useless-mustaches": ["error", {
"ignoreIncludesComment": false,
"ignoreStringEscape": false
}]
}
ignoreIncludesComment
... Iftrue
, do not report expressions containing comments. defaultfalse
.ignoreStringEscape
... Iftrue
, do not report string literals with useful escapes. defaultfalse
.
# "ignoreIncludesComment": true
# "ignoreStringEscape": true
# 👫 Related Rules
# 🚀 Version
This rule was introduced in eslint-plugin-vue v7.0.0