Skip to content

Repo: Enable no-unused vars caughtErrors: all internally #8224

Closed
@JoshuaKGoldberg

Description

@JoshuaKGoldberg

#8142 (comment) reminded me that we don't have any linting to prevent unused catch locals.

In our repo right now, this would present zero lint complaints from @typescript-eslint/no-unused-vars:

try {
  // ...
} catch (error) {
  // ...
}

Proposal: let's set https://eslint.org/docs/latest/rules/no-unused-vars#caughterrors to "all" in our lint config?

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuelocked due to agePlease open a new issue if you'd like to say more. See https://typescript-eslint.io/contributing.repo maintenancethings to do with maintenance of the repo, and not with code/docs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions