Skip to content

Commit efaa2bb

Browse files
committed
style: fix lint errors
1 parent 2c12569 commit efaa2bb

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

packages/browser-sdk/src/flag/flagCache.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ interface cacheEntry {
1212
}
1313

1414
// Parse and validate an API flags response
15-
export function parseAPIFlagsResponse(
16-
flagsInput: any,
17-
): RawFlags | undefined {
15+
export function parseAPIFlagsResponse(flagsInput: any): RawFlags | undefined {
1816
if (!isObject(flagsInput)) {
1917
return;
2018
}

packages/browser-sdk/test/sse.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { http, HttpResponse } from "msw";
2-
import nock from "nock";
2+
import { cleanAll, isDone } from "nock";
33
import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";
44

55
import {
@@ -300,10 +300,10 @@ describe("message handling", () => {
300300
});
301301

302302
afterEach(() => {
303-
expect(nock.isDone()).toBe(true);
303+
expect(isDone()).toBe(true);
304304

305305
vi.clearAllMocks();
306-
nock.cleanAll();
306+
cleanAll();
307307
});
308308

309309
test("passes message to callback", async () => {
@@ -435,11 +435,11 @@ describe("automatic retries", () => {
435435

436436
beforeEach(() => {
437437
vi.clearAllMocks();
438-
nock.cleanAll();
438+
cleanAll();
439439
});
440440

441441
afterEach(() => {
442-
expect(nock.isDone()).toBe(true);
442+
expect(isDone()).toBe(true);
443443
});
444444

445445
test("opens and connects to a channel", async () => {

packages/eslint-config/base.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ module.exports = [
5656
// https://github.com/import-js/eslint-plugin-import/issues/2556
5757
espree: [".js", ".cjs", ".mjs", ".jsx"],
5858
},
59+
"import/resolver": {
60+
typescript: {
61+
alwaysTryTypes: true,
62+
},
63+
},
5964
},
6065
rules: {
6166
...jsPlugin.configs.recommended.rules,
@@ -119,7 +124,6 @@ module.exports = [
119124
"import/resolver": {
120125
...importsPlugin.configs.typescript.settings["import/resolver"],
121126
typescript: {
122-
alwaysTryTypes: true,
123127
project: "./tsconfig.json",
124128
},
125129
},

0 commit comments

Comments
 (0)