How to disable require-v-for-keys eslint rule in a Vue project?

547 views vue.js
0

From a Vue CLI generated project, how can I disable only require-v-for-keys?

answered question

1 Answer

11

Try "vue/require-v-for-key":"off" in .eslintrc.js, but I am not in favor of disabling billing, even using v-for key is good practice. If you do not know how to use v-for with key: Example:

v-for="(item, key) in data" :key="key"

posted this

Have an answer?

JD

Please login first before posting an answer.