sindresorhus/eslint-plugin-unicorn
The issue has been solved
Unify `catch-error-name` variable renaming strategy with `prevent-abbreviations` #257
futpib posted onGitHub
When generating a unique variable name catch-error-name
uses number suffixes like error2
, error3
etc. It should instead add underscores like error_
, error__
etc. and use avoidCapture
utility function to do it.
From this comment https://github.com/sindresorhus/eslint-plugin-unicorn/pull/237#issuecomment-464188799