Skip to content

vue/no-use-computed-property-like-method

禁止使用方法等计算属性

  • ⚙️ 此规则包含在 "plugin:vue/essential"*.configs["flat/essential"]"plugin:vue/vue2-essential"*.configs["flat/vue2-essential"]"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"] 中。

📖 规则详情

此规则禁止使用类似方法的计算属性。

¥This rule disallows to use computed property like method.

Now loading...

此规则无法检查 props 是否用作数组:

¥This rule can't check if props is used as array:

Now loading...

🔧选项

¥🔧 Options

无。

¥Nothing.

🚀版本

¥🚀 Version

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

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

🔍代码实现

¥🔍 Implementation

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