Appearance
vue/no-computed-properties-in-data
禁止访问
data中的计算属性
- ⚙️ 此规则包含在
"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"]中。
📖 规则详情
此规则禁止访问 data() 中的计算属性。无法在 data() 中访问计算属性,因为它在初始化之前。
¥This rule disallow accessing computed properties in data().\ The computed property cannot be accessed in data() because is before initialization.
🔧选项
¥🔧 Options
无。
¥Nothing.
🚀版本
¥🚀 Version
此规则在 eslint-plugin-vue v7.20.0
¥This rule was introduced in eslint-plugin-vue v7.20.0
🔍代码实现
¥🔍 Implementation