Bug: [unbound-method] Does not specify which destructured method is unbound #6276
Closed
4 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
good first issue
Good for newcomers
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
https://typescript-eslint.io/play/#ts=4.9.3&sourceType=module&showAST=ts&code=MYewdgzgLgBAbgQwDYFcCmEYF4YG8BQMRMCAFAJR4wC+ANIcQEYBcMF2AfFXQ9fvqEixcJWjEY1s8ZOggBuIA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQAIBcBPABxQGNoBLY-AWhXkoDt8B6WJgIwHsOATWgFtE+ABbc+6KImjRu0SODABfEMqA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA
Repro Code
ESLint Config
tsconfig
Expected Result
Specifically
a
should be indicated as the offending unbound method.Actual Result
All of
{ a, b }
is squigglied.Additional Info
Found when looking at tRPC's source. Thanks for the poke @KATT 😄
https://github.com/trpc/trpc/blob/269c9a2eedeae075be7f9863f870d907cb36d01d/examples/standalone-server/src/server.ts#L75-L78
The text was updated successfully, but these errors were encountered: