Disallow unused variables (no-unused-vars)
PLEASE READ THIS ISSUE BEFORE USING THIS RULE #1856
Rule Details
This rule extends the base eslint/no-unused-vars
rule. It adds support for TypeScript features, such as types.
How to use
{
// note you must disable the base rule as it can report incorrect errors
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"]
}
Options
See eslint/no-unused-vars
options.
Taken with ❤️ from ESLint core
Last updated
Was this helpful?