Closed
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
{
"rules": {
"@typescript-eslint/typedef": [
"warn",
{
"arrayDestructuring": true,
"arrowParameter": true,
"memberVariableDeclaration": true,
"objectDestructuring": true,
"parameter": true,
"propertyDeclaration": true,
"variableDeclaration": true,
"variableDeclarationIgnoreFunction": true
}
]
}
}
const {
user: { name }, // <-- It complains about type annotation for { name }
email,
}: User = await this.getUser();
Expected Result
Should not print any warnings
Actual Result
Shows a warning (because of that I cannot switch the rule to "error" instead of "warn")
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
^5.9.1 |
@typescript-eslint/parser |
^5.9.1 |
TypeScript |
~4.3.5 |
ESLint |
^8.6.0 |
node |
16.13.1 |