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
<scriptsetuplang="ts">// this is called from other parts in the code with parametersfunction myHandler (a?:string,b?:string,c?:string) {// business logic hereconsole.log(a, b, c)}// this is called from another part of the template// eslint-disable-next-line @typescript-eslint/no-unused-varsfunction myBusinessLogic () {myHandler('a', 'b', 'c')}</script>
<template>
<!-- this looks like the documentation ✓ GOOD <button v-on:click="handler" /> <template v-for="e in list"> <button v-on:click="e" /> <button v-on:click="() => handler(e)" /> </template>-->
<button
@click="() =>myHandler(undefined, undefined, undefined)"
/>
</template>
What did you expect to happen?
The documentation for ["method", "inline-function"] seems to allow handlers of type @click="() => myHandler(parameter)" but in this case it doesnt seem that this is resprected correctly
Checklist
Tell us about your environment
Please show your full configuration:
Output from npx eslint --print-config eslint.config.mjs:
What did you do?
What did you expect to happen?
The documentation for
["method", "inline-function"]
seems to allow handlers of type@click="() => myHandler(parameter)"
but in this case it doesnt seem that this is resprected correctlyWhat actually happened?
Repository to reproduce this issue
https://github.com/chrisnruud/eslint9test
The text was updated successfully, but these errors were encountered: