0.1.2 • Published 2 months ago

eslint-plugin-vue-unused-autofix v0.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

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.

0.1.2

2 months ago

0.1.1

2 months ago

0.1.0

2 months ago

0.0.1

2 months ago