Bug: object-shorthand loses type parameters when auto-fixing #18429
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
bug
ESLint is working incorrectly
repro:needed
Environment
Node version: v18.19.0
npm version: v10.7.0
Local ESLint version: v8.57.0 (Currently used)
Global ESLint version: Not found
Operating System: darwin 23.4.0
What parser are you using?
@typescript-eslint/parser
What did you do?
Configuration
Run auto-fix on this:
What did you expect to happen?
What actually happened?
Link to Minimal Reproducible Example
https://typescript-eslint.io/play/#ts=5.4.5&fileType=.ts&code=MYewdgzgLgBFCm0DyAjAVjAvDA3gKBhgFsBPAWXigAsQATALhgB4AVAPgAoR1GWBKXlja4ChGACdKAV3FgY3NAG5RAXwA0eFcqA&eslintrc=N4KABGBEBOCuA2BTAzpAXGUEKQPYCMArRAYwBcBaZAC12jOoEMA7AE3TAG1xsdFpodSABoevSI3gB3RgE9Uo3hCxKcjAG64AlqwCiADwAO8LSS1kASojKxozAIIDcU1BjJxEY7AF8vAXR5fbyA&tsconfig=N4KABGBEDGD2C2AHAlgGwKYCcDyiAuysAdgM6QBcYoEEkJemy0eAcgK6qoDCAFutAGsylBm3TgwAXxCSgA&tokens=false
Participation
Additional comments
First reported here.
The text was updated successfully, but these errors were encountered: