chore: upgrade to eslint9 (#9163)

This commit is contained in:
Brooooooklyn
2024-12-14 10:29:04 +00:00
parent f49bef4915
commit aaaea8918f
37 changed files with 681 additions and 736 deletions

View File

@@ -253,7 +253,7 @@ export class FalProvider
metrics.ai.counter('chat_text_stream_calls').add(1, { model });
const result = await this.generateText(messages, model, options);
for await (const content of result) {
for (const content of result) {
if (content) {
yield content;
if (options.signal?.aborted) {

View File

@@ -178,6 +178,7 @@ export class OIDCProvider
super();
}
// eslint-disable-next-line @typescript-eslint/no-misused-promises
override async onModuleInit() {
const config = this.optionalConfig as OAuthOIDCProviderConfig;
if (config && config.issuer && config.clientId && config.clientSecret) {

View File

@@ -100,7 +100,7 @@ export class MockCopilotTestProvider
// make some time gap for history test case
await sleep(100);
const result = 'generate text to text stream';
for await (const message of result) {
for (const message of result) {
yield message;
if (options.signal?.aborted) {
break;