eslint-plugin-vue-hare
v0.0.2
Published
eslint-plugin-vue-hare
Downloads
2
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-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
}
}