eslint-plugin-vue-unused-autofix
v0.1.2
Published
Provide an autofixer for the `no-unused-components` and `no-unused-properties`.
Downloads
11
Maintainers
Readme
eslint-plugin-vue-unused-autofix
Provide an autofixer for the
no-unused-components
andno-unused-properties
.
Installation
You'll first need to install ESLint :
npm i eslint --save-dev
Next, install eslint-plugin-vue-unused-autofix
:
npm install eslint-plugin-vue-unused-autofix --save-dev
Usage
Add vue-unused-autofix
to your .eslintrc
configuration file:
{
"extends": ["plugin:vue-unused-autofix/base"]
}
Supported Rules
no-unused-components
no-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.