eslint-plugin-vue-unused-autofix

一个 ESLint 插件,自动移除 Vue 项目中未使用的组件和属性,扩展了 eslint-plugin-vue 的功能,支持自动修复未使用的 props 和 Vuex 映射属性。

项目地址:eslint-plugin-vue-unused-autofix项目介绍:扩展 eslint-plugin-vue 的 no-unused-componentsno-unused-properties 规则,实现自动修复项目中可能因为历史原因,遗留了很多未使用的属性,eslint-plugin-vue 只是进行提示而已,没有自动移除,一个个删除也很麻烦,所以进行扩展,让 eslint autofix。注意:no-unused-properties 只对 propsmapState|mapGetters|mapMutations|mapActions 有效,因为 datacomputedmethods 有可能被其他组件使用。