Skip to content

Commit

Permalink
style: disable no-this-alias for tree-node
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Feb 10, 2025
1 parent 1832c9e commit 2bdec35
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/injector/topology-tree/tree-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export class TreeNode<T> {
const visited = new Set<TreeNode<T>>();

let depth = 0;
// eslint-disable-next-line @typescript-eslint/no-this-alias
let current: TreeNode<T> | null = this;

while (current) {
Expand All @@ -45,6 +46,7 @@ export class TreeNode<T> {
hasCycleWith(target: T) {
const visited = new Set<TreeNode<T>>();

// eslint-disable-next-line @typescript-eslint/no-this-alias
let current: TreeNode<T> | null = this;

while (current) {
Expand Down

0 comments on commit 2bdec35

Please sign in to comment.