sindresorhus/eslint-plugin-unicorn

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


Fund this Issue

$60.00
Rewarded

Rewarded pull request

Recent activities

mrhen was rewarded by sindresorhus for sindresorhus/eslint-plugin-unicorn# 257
almost 6 years ago
mrhen submitted an output to  sindresorhus/ eslint-plugin-unicorn# 257
almost 6 years ago