Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix @typescript-eslint/no-unsafe-member-access #4487

Merged
merged 2 commits into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions packages/adblocker/tools/stress-test-engine-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function filtersDiff(
return differences;
}

async function getMeta(url: string): Promise<any> {
async function getMeta(url: string): Promise<{ name: string; revisions: string[] }> {
const meta = (await axios.get(url)).data;
if (typeof meta === 'string') {
const buffer = Buffer.from(
Expand Down Expand Up @@ -273,7 +273,6 @@ async function collectTestCases(list: string): Promise<TestCase[]> {
const revisions: Set<string> = new Set();

// Append current revision (the most recent one)
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
const previousRevisions = [...meta.revisions];
console.log('revisions', previousRevisions);

Expand Down
Loading