Skip to content

vue/mustache-interpolation-spacing

在胡须插值中强制统一间距

  • ⚙️ 此规则包含在 "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"] 中。
  • 🔧命令行 上的 --fix 选项可以自动修复此规则报告的一些问题。

    ¥🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 规则详情

此规则旨在强制在 mustache 插值中使用统一间距。

¥This rule aims at enforcing unified spacing in mustache interpolations.

Now loading...

🔧选项

¥🔧 Options

json
{
  "vue/mustache-interpolation-spacing": ["error", "always" | "never"]
}
  • "always"(默认)...表达式和大括号之间有一个空格。

    ¥"always" (default) ... Expect one space between expression and curly brackets.

  • "never" ...表达式和大括号之间没有空格。

    ¥"never" ... Expect no spaces between expression and curly brackets.

"never"

Now loading...

🚀版本

¥🚀 Version

此规则在 eslint-plugin-vue v3.13.0 中引入

¥This rule was introduced in eslint-plugin-vue v3.13.0

🔍代码实现

¥🔍 Implementation

eslint-plugin-vue v10.1 中文网 - 粤ICP备13048890号