🚀 Feature: Enable no-useless-rename #939
Labels
good first issue
Good for newcomers, please hop on!
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Bug Report Checklist
main
branch of the repository.Overview
Once in a while I find a piece of code that unnecessarily renames a destructured variable:
create-typescript-app/src/shared/options/ensureRepositoryExists.ts
Line 67 in ef2e348
That
: github
part is unnecessary. The code is essentially the same as:https://eslint.org/docs/latest/rules/no-useless-rename exists but isn't enabled yet. Let's add it in!
Additional Info
Note that there are multiple places you'll want to add
no-useless-rename
:create-typescript-app/.eslintrc.cjs
Line 162 in ddf1318
create-typescript-app/src/steps/writing/creation/createESLintRC.ts
Line 210 in 0b542be
createESLintRC.test.ts
)The text was updated successfully, but these errors were encountered: