Skip to content

Files

Latest commit

 

History

History
22 lines (15 loc) · 474 Bytes

v-on-handler-style.md

File metadata and controls

22 lines (15 loc) · 474 Bytes

Pattern: Inconsistent v-on event handler style

Issue: -

Description

This rule aims to enforce a consistent style in v-on event handlers.

<template>
  <!-- ✓ GOOD -->
  <button v-on:click="handler" />

  <!-- ✗ BAD -->
  <button v-on:click="handler()" />
  <button v-on:click="() => handler()" />
</template>

Further Reading