Skip to content

Bug: [no-deprecated] does not report on computed member expressions with a known string literal property #10958

Open
@rakleed

Description

@rakleed

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have searched for related issues and found none that matched my issue.
  • I have read the FAQ and my problem is not listed.

Issue Description

eslint-plugin-unicorn since version 57 deprecated the old config name for use in flat config: https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v57.0.0/index.d.ts#L8-L12

TypeScript reports this, but the no-deprecated rule does not work in eslint.config.ts for the deprecated config name.

Reproduction Repository Link

https://stackblitz.com/edit/vitejs-vite-hq4ykaue?file=eslint.config.ts

Repro Steps

  1. Open the reproduction link
  2. Open the second terminal at the bottom
  3. npm run lint

Versions

package version
@typescript-eslint/eslint-plugin 8.26.1
@typescript-eslint/parser 8.26.1
@typescript-eslint/scope-manager 8.26.1
@typescript-eslint/typescript-estree 8.26.1
@typescript-eslint/type-utils 8.26.1
@typescript-eslint/utils 8.26.1
TypeScript 5.8.2
ESLint 9.22.0
node 18.20.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    accepting prsGo ahead, send a pull request that resolves this issuebugSomething isn't workingpackage: eslint-pluginIssues related to @typescript-eslint/eslint-plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions