0.0.2 • Published 2 years ago

eslint-plugin-vue-hare v0.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

eslint-plugin-vue-hare

disallow using v-for index as key

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-vue-hare:

npm install eslint-plugin-vue-hare --save-dev

Usage

Add vue-hare to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["vue-hare"]
}

or

{
  "extends": ["plugin:vue-hare/recommended"]
}

Then configure the rules you want to use under the rules section.

{
  "rules": {
    "vue-hare/no-v-for-index-as-key": 2
  }
}
0.0.2

2 years ago