Skip to content

Commit 101ab24

Browse files
committed
added lint ignores
1 parent f6cea9a commit 101ab24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/middleware/rateLimiterSetup.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export default function setupRateLimiter(
2020
switch (selection) {
2121
case 'TOKEN_BUCKET':
2222
// todo validate options
23-
//@ts-ignore
23+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
24+
// @ts-ignore
2425
return new TokenBucket(options.bucketSize, options.refillRate, client);
2526
break;
2627
case 'LEAKY_BUCKET':
@@ -33,7 +34,8 @@ export default function setupRateLimiter(
3334
throw new Error('Sliding Window Log has not be implemented.');
3435
break;
3536
case 'SLIDING_WINDOW_COUNTER':
36-
//@ts-ignore
37+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
38+
// @ts-ignore
3739
return new SlidingWindowCounter(options.windowSize, options.capacity, client);
3840
break;
3941
default:

0 commit comments

Comments
 (0)