vue/use-v-on-exact
eslint-plugin-vue
No autofixRecommended
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/use-v-on-exact": "error",
},
},
]; <button v-on:click="foo" v-on:click.ctrl="foo"></button>
</template><button @click="foo" :click="foo"></button>
<button v-on:click.exact="foo" v-on:click.ctrl="foo"></button>Examples from the ESLint documentation.
vue/use-v-on-exact
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/use-v-on-exact": "error",
},
},
];Oxlint does not have this rule.
nursery/useVueVOnExact
nursery · since 2.6.3
{
"linter": {
"rules": {
"nursery": {
"useVueVOnExact": "error"
}
}
}
}Enforce props default values to be valid
Require control the display of the content inside <transition>