Skip to content

refactor: resolve @typescript-eslint/no-this-alias warnings#549

Merged
bkendall merged 2 commits into
mainfrom
bk-lint-cleanup
Jul 8, 2026
Merged

refactor: resolve @typescript-eslint/no-this-alias warnings#549
bkendall merged 2 commits into
mainfrom
bk-lint-cleanup

Conversation

@bkendall

@bkendall bkendall commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

bkendall added 2 commits July 8, 2026 10:46
Converts methods and callbacks in activator.js and responder.js to arrow
functions to preserve lexical this scoping, resolving all occurrences
of no-this-alias (const self = this) across the codebase.
Removes the rule override from the eslint configuration to allow the rule
to default to error, preventing future regressions.
@bkendall
bkendall requested a review from joehan July 8, 2026 17:48

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the @typescript-eslint/no-this-alias warning rule from the ESLint configuration and refactors src/activator.js and src/responder.js to eliminate the use of self = this aliases. It replaces self references with this and converts several functions to arrow functions to maintain the correct lexical context. There are no review comments, and I have no feedback to provide.

@bkendall
bkendall merged commit edd7966 into main Jul 8, 2026
24 checks passed
@bkendall
bkendall deleted the bk-lint-cleanup branch July 8, 2026 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant