You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interestingly this bug requires 3 (or more) duplicate declarations to trigger.
I haven't looked yet - but given it happens for 3 and not 2 - I'd assume that ESLint is merging the distinct fixes poorly - leading to the syntax error.
The text was updated successfully, but these errors were encountered:
@ljharb the ESLint rule tester might not pick this up? Depends how it composites fixes together I guess. Might be worth a quick whirl as a manual test against a file with the CLI to triple check.
Hmm - investigating more this appears to be working fine now yeah.
Some combination of the latest ESLint version and the latest plugin version appears to have fixed it.
Input:
Expected:
Error and fixed to
(or something similar)
Actual:
Error and fixed to
Interestingly this bug requires 3 (or more) duplicate declarations to trigger.
I haven't looked yet - but given it happens for 3 and not 2 - I'd assume that ESLint is merging the distinct fixes poorly - leading to the syntax error.
The text was updated successfully, but these errors were encountered: