Skip to content

Commit 093985e

Browse files
committed
Suppress no-unused-vars for memoize import
Add an explanatory comment and an `/* eslint-disable-next-line no-unused-vars */` directive before the `memoize` import in workers/grouper/src/index.ts. This prevents ESLint from flagging the import as unused since decorators (which rely on the import) are not recognized as usages by the linter.
1 parent f1c083a commit 093985e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

workers/grouper/src/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ import RedisHelper from './redisHelper';
2525
import { computeDelta } from './utils/repetitionDiff';
2626
import { rightTrim } from '../../../lib/utils/string';
2727
import { hasValue } from '../../../lib/utils/hasValue';
28+
29+
/**
30+
* eslint does not count decorators as a variable usage
31+
*/
32+
/* eslint-disable-next-line no-unused-vars */
2833
import { memoize } from '../../../lib/memoize';
2934

3035
/**

0 commit comments

Comments
 (0)