I have following vue component.
<template lang="pug">
button(@click="onLogout") Logout
</template>
<script setup lang="ts">
function onLogout() {
// some logic
}
</script>
When I run linter. Linter complains Warning:(9, 10) ESLint: 'onLogout' is defined but never used. (@typescript-eslint/no-unused-vars)
How do I make ESLint aware that onLogout
function is used in the template?
plugin:vue-pug/strongly-recommended
and it didn't seem to work. – Slither