eslint-plugin-vue-unused-autofix

0.1.2 • Public • Published

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.

Package Sidebar

Install

npm i eslint-plugin-vue-unused-autofix

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

12 kB

Total Files

8

Last publish

Collaborators

  • kid-joker