Bug: no-useless-key
doesn't report on TemplateLiterals #19280
Closed as not planned
Description
opened on Dec 26, 2024
Environment
Environment Info:
Node version: v22.12.0
npm version: v11.0.0
Local ESLint version: v9.17.0 (Currently used)
Global ESLint version: Not found
Operating System: darwin 24.1.0
What parser are you using?
Default (Espree)
What did you do?
Configuration
/* eslint no-useless-computed-key: "error" */
const foo = { [`a`]: 1 };
What did you expect to happen?
The useless computed key should be reported.
What actually happened?
It was not reported.
Link to Minimal Reproducible Example
Participation
- I am willing to submit a pull request for this issue.
Additional comments
No response
Metadata
Assignees
Type
Projects
Status
Complete
Activity