Skip to content

Commit e388496

Browse files
fix: resolve eslint errors in multi-provider migration
1 parent ec910a3 commit e388496

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

packages/server/src/provider/multi-provider/strategies/base-evaluation-strategy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import type {
23
ErrorCode,
34
EvaluationContext,
@@ -67,7 +68,6 @@ export abstract class BaseEvaluationStrategy {
6768
return true;
6869
}
6970

70-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
7171
shouldEvaluateNextProvider<T extends FlagValue>(
7272
_strategyContext?: StrategyPerProviderContext,
7373
_context?: EvaluationContext,
@@ -76,7 +76,6 @@ export abstract class BaseEvaluationStrategy {
7676
return true;
7777
}
7878

79-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
8079
shouldTrackWithThisProvider(
8180
strategyContext: StrategyProviderContext,
8281
_context?: EvaluationContext,

packages/server/test/multi-provider.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
import { MultiProvider } from '../src/provider/multi-provider/multi-provider';
23
import type {
34
EvaluationContext,
@@ -43,7 +44,7 @@ class TestProvider implements Provider {
4344
}
4445

4546
const callEvaluation = async (multi: MultiProvider, context: EvaluationContext, logger: Logger) => {
46-
await callBeforeHook(multi, context, 'flag', 'boolean', false);
47+
await callBeforeHook(multi, context, 'flag', 'boolean', false, logger);
4748
return multi.resolveBooleanEvaluation('flag', false, context);
4849
};
4950

packages/web/src/provider/multi-provider/strategies/base-evaluation-strategy.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-unused-vars */
12
import type {
23
ErrorCode,
34
EvaluationContext,
@@ -65,7 +66,6 @@ export abstract class BaseEvaluationStrategy {
6566
return true;
6667
}
6768

68-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
6969
shouldEvaluateNextProvider<T extends FlagValue>(
7070
strategyContext: StrategyPerProviderContext,
7171
context: EvaluationContext,
@@ -74,7 +74,6 @@ export abstract class BaseEvaluationStrategy {
7474
return true;
7575
}
7676

77-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
7877
shouldTrackWithThisProvider(
7978
strategyContext: StrategyProviderContext,
8079
context: EvaluationContext,
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export * from './base-evaluation-strategy';
2-
export * from './FirstMatchStrategy';
3-
export * from './FirstSuccessfulStrategy';
4-
export * from './ComparisonStrategy';
2+
export * from './first-match-strategy';
3+
export * from './first-successful-strategy';
4+
export * from './comparison-strategy';

packages/web/test/multi-provider-web.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable @typescript-eslint/no-explicit-any */
12
import { WebMultiProvider } from '../src/provider/multi-provider/multi-provider-web';
23
import type {
34
EvaluationContext,

0 commit comments

Comments
 (0)