Skip to content

vue/func-call-spacing

<template> 中要求或禁止在函数标识符及其调用之间留有空格

  • 🔧 command line 上的 --fix 选项可以自动修复此规则报告的一些问题。

此规则与 @stylistic/function-call-spacing 规则相同,但适用于 <template> 中的表达式。

¥This rule is the same rule as @stylistic/function-call-spacing rule but it applies to the expressions in <template>.

此规则扩展了 @stylistic/eslint-plugin 所具有的规则,但如果未安装 @stylistic/eslint-plugin,则此规则从 ESLint 核心中提取并扩展相同的规则。但是,如果两者都未找到,则无法使用该规则。

¥This rule extends the rule that @stylistic/eslint-plugin has, but if @stylistic/eslint-plugin is not installed, this rule extracts and extends the same rule from ESLint core. However, if neither is found, the rule cannot be used.

📚 扩展阅读

🚀版本

¥🚀 Version

此规则在 eslint-plugin-vue v7.0.0 中引入

¥This rule was introduced in eslint-plugin-vue v7.0.0

🔍代码实现

¥🔍 Implementation

使用 ❤️ 来自 ESLint Stylistic

¥Taken with ❤️ from ESLint Stylistic

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