Skip to content

Commit 2bdec35

Browse files
style: disable no-this-alias for tree-node
1 parent 1832c9e commit 2bdec35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/injector/topology-tree/tree-node.ts

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export class TreeNode<T> {
2727
const visited = new Set<TreeNode<T>>();
2828

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

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

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

5052
while (current) {

0 commit comments

Comments
 (0)