eslint-plugin-vue-hare
v0.0.3
Published
eslint-plugin-vue-hare
Maintainers
Readme
eslint-plugin-vue-hare
disallow using v-for index as key
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-vue-hare:
npm install eslint-plugin-vue-hare --save-devUsage
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
}
}