Bug: [no-confusing-void-expression] Wrong autofix for a ? void : T
#6187
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
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&code=MYewdgzgLgBAtgQwJ4CMCmBRATllDgDWMAvDABQCUJAfDAN4CwAUDDADZqwIkwCMA3M1ZZOAVyxgY3APzkAZqLDAoAS3DkqdGAF8KlGAC4pgptpPNmaAB4AHEFlgATNHISi2sOtqA&eslintrc=N4KABGBEBOCuA2BTAzpAXGYkACAXAngA4oDG0AlobgLQrzkB2uA9AwPbUlsMBmsyjAObUAbm3IATWgA9C0FAO7ooiaNDbRIAXxBagA&tsconfig=N4XyA
Repro Code
ESLint Config
tsconfig
Expected Result
Don't report it or disable automatic fixes.
Actual Result
was wrongly fixed.
Additional Info
No response
The text was updated successfully, but these errors were encountered: