Hey, that's the code I am working with.
When I am declaring a type this error is shown.
So Eslint thinks that I have to use this var and, instead I am returning void.
To use
// eslint-disable-line
comment is not an option because I want to avoid unnecessary comments. Also I don't want to set it in Eslint configuration.
How should I overcome this issue? Thanks!
So I found a way to solve this issue. My mistake was to think that there is only the way to disable all unused vars, but appears that there is a way to disable only args on type declaration.
To disable only args you have to go to.eslintrc file and add rule: "@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.