0👍
Since in your tags you indicate that you are using TypeScript, you can use the noUnusedParameters
tsconfig setting. Quoting from the setting’s docs:
Report errors on unused parameters in functions.
Like so in the tsconfig.json:
{
...
"compilerOptions": {
...
"noUnusedParameters": true,
...
}
...
}
Or, as indicated in the comments by @kissu, you could use ESLint. For some tips on setup, see Vue 2 – ESLint + Standard + Prettier.
- [Vuejs]-How to pass params using fetch API in vuejs vuex store action
- [Vuejs]-Add data using the :data-obj directive after async function finishes
Source:stackexchange.com