no-useless-default-assignment Disallow defaults that cannot be selected by the checked input type A destructuring default can only run when its selected value is undefined. Instead, you SHOULD remove the default when the checked input type excludes undefined. - Category: suspicious - Level: warning - Fix: automatic - Scope: module Reported function name(user: { name: string }): string { const { name = "anonymous" } = user; return name; } Accepted function name(user: { name: string }): string { const { name } = user; return name; } Prior art - typescript-eslint ยท no-useless-default-assignment language/linter/src/rules/suspicious/nouselessdefaultassignment.rs:8