vue/no-deprecated-events-api
禁止使用已弃用的事件 API(在 Vue.js 3.0.0+ 中)
- ⚙️ 此规则包含在所有
"plugin:vue/vue3-essential"
、*.configs["flat/essential"]
、"plugin:vue/vue3-strongly-recommended"
、*.configs["flat/strongly-recommended"]
、"plugin:vue/vue3-recommended"
和*.configs["flat/recommended"]
中。
📖 规则详情
此规则报告使用已弃用的 $on
、$off
、$once
API。(在 Vue.js 3.0.0+ 中)。
有关更多详细信息,请参阅迁移指南 - 事件 API。
🔧 选项
无。
📚 扩展阅读
🚀 版本
此规则在 eslint-plugin-vue v7.0.0 中引入