Skip to content

Provide an autofixer for the `no-unused-components` and `no-unused-properties`.

License

Notifications You must be signed in to change notification settings

KID-joker/eslint-plugin-vue-unused-autofix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-vue-unused-autofix

NPM version NPM downloads License

Provide an autofixer for the no-unused-components and no-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.

About

Provide an autofixer for the `no-unused-components` and `no-unused-properties`.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published