You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -58,6 +58,7 @@ This rule aims to enforce a consistent style in `v-on` event handlers:
58
58
- First option ... Specifies the name of an allowed style. Default is `["method", "inline-function"]`.
59
59
-`["method", "inline-function"]` ... Allow handlers by method binding. e.g. `v-on:click="handler"`. Allow inline functions where method handlers cannot be used. e.g. `v-on:click="() => handler(listItem)"`.
60
60
-`["method", "inline"]` ... Allow handlers by method binding. e.g. `v-on:click="handler"`. Allow inline handlers where method handlers cannot be used. e.g. `v-on:click="handler(listItem)"`.
61
+
-`["inline", "inline-function"]` ... Allow inline handlers. e.g. `v-on:click="handler()"`. Allow inline functions if they have at least 1 argument. e.g. `v-on:click="(arg1, arg2) => handler(arg1, arg2)"`.
61
62
-`"inline-function"` ... Allow inline functions. e.g. `v-on:click="() => handler()"`
62
63
-`"inline"` ... Allow inline handlers. e.g. `v-on:click="handler()"`
63
64
- Second option
@@ -121,6 +122,33 @@ This rule aims to enforce a consistent style in `v-on` event handlers:
0 commit comments