0.1.2 • Published 2 years ago
eslint-plugin-vue-unused-autofix v0.1.2
eslint-plugin-vue-unused-autofix
Provide an autofixer for the
no-unused-componentsandno-unused-properties.
Installation
You'll first need to install ESLint :
npm i eslint --save-devNext, install eslint-plugin-vue-unused-autofix:
npm install eslint-plugin-vue-unused-autofix --save-devUsage
Add vue-unused-autofix to your .eslintrc configuration file:
{
"extends": ["plugin:vue-unused-autofix/base"]
}Supported Rules
no-unused-componentsno-unused-properties
Note: The no-unused-properties only autofix props and mapState|mapGetters|mapMutations|mapActions, because data, computed, and methods may be used by other components (e.g. mixins, property access via $refs). If the options has mixins or extends, it will skip.