Skip to content

Commit 9ac07a4

Browse files
committed
chore(biome): enable noUnusedImports rule
1 parent 8fb1a2f commit 9ac07a4

File tree

37 files changed

+38
-32
lines changed

37 files changed

+38
-32
lines changed

biome.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"suspicious": {
2121
"all": false,
2222
"noControlCharactersInRegex": "error"
23+
},
24+
"nursery": {
25+
"noUnusedImports": "error"
2326
}
2427
},
2528
"ignore": [".vscode/*", "**/*.json"]

packages/angular/test/tracing.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Component } from '@angular/core';
22
import type { ActivatedRouteSnapshot, CanActivate, RouterStateSnapshot } from '@angular/router';
3-
import type { Hub } from '@sentry/types';
43

54
import { TraceClassDecorator, TraceDirective, TraceMethodDecorator, instrumentAngularRouting } from '../src';
65
import { getParameterizedRouteFromSnapshot } from '../src/tracing';

packages/astro/test/server/middleware.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as SentryNode from '@sentry/node';
22
import type { Client } from '@sentry/types';
3-
import { SpyInstance, vi } from 'vitest';
3+
import { vi } from 'vitest';
44

55
import { handleRequest, interpolateRouteFromUrlAndParams } from '../../src/server/middleware';
66

packages/browser-integration-tests/suites/public-api/startTransaction/init.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as Sentry from '@sentry/browser';
2-
// eslint-disable-next-line no-unused-vars
3-
import * as _ from '@sentry/tracing';
2+
import '@sentry/tracing';
43

54
window.Sentry = Sentry;
65

packages/core/src/metrics/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { MeasurementUnit, MetricBucketItem } from '@sentry/types';
22
import { dropUndefinedKeys } from '@sentry/utils';
3-
import type { MetricType, SimpleMetricBucket } from './types';
3+
import type { MetricType } from './types';
44

55
/**
66
* Generate bucket key from metric properties.

packages/deno/src/integrations/deno-cron.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { withMonitor } from '@sentry/core';
22
import type { Integration } from '@sentry/types';
3-
import type { DenoClient } from '../client';
43
import { parseScheduleToString } from './deno-cron-format';
54

65
type CronOptions = { backoffSchedule?: number[]; signal?: AbortSignal };

packages/deno/src/integrations/globalhandlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ServerRuntimeClient } from '@sentry/core';
2-
import { getClient, getCurrentHub, getCurrentScope } from '@sentry/core';
2+
import { getClient, getCurrentHub } from '@sentry/core';
33
import { flush } from '@sentry/core';
44
import type { Event, Hub, Integration, Primitive, StackParser } from '@sentry/types';
55
import { eventFromUnknownInput, isPrimitive } from '@sentry/utils';

packages/e2e-tests/test-applications/create-remix-app-v2/app/entry.server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { PassThrough } from 'node:stream';
88

9-
import type { AppLoadContext, DataFunctionArgs, EntryContext } from '@remix-run/node';
9+
import type { AppLoadContext, EntryContext } from '@remix-run/node';
1010
import { createReadableStreamFromReadable } from '@remix-run/node';
1111
import { installGlobals } from '@remix-run/node';
1212
import { RemixServer } from '@remix-run/react';

packages/e2e-tests/test-applications/create-remix-app/app/entry.server.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import { PassThrough } from 'node:stream';
88

9-
import type { AppLoadContext, DataFunctionArgs, EntryContext } from '@remix-run/node';
9+
import type { AppLoadContext, EntryContext } from '@remix-run/node';
1010
import { Response } from '@remix-run/node';
1111
import { RemixServer } from '@remix-run/react';
1212
import * as Sentry from '@sentry/remix';
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,2 @@
11
/* eslint-disable @typescript-eslint/no-unused-vars */
22
// we need to import the SDK to ensure tsc check the types
3-
import * as _SentryBrowser from '@sentry/browser';
4-
import * as _SentryCore from '@sentry/core';
5-
import * as _SentryHub from '@sentry/hub';
6-
import * as _SentryIntegrations from '@sentry/integrations';
7-
import * as _SentryNode from '@sentry/node';
8-
import * as _SentryOpentelemetry from '@sentry/opentelemetry-node';
9-
import * as _SentryReplay from '@sentry/replay';
10-
import * as _SentryTracing from '@sentry/tracing';
11-
import * as _SentryTypes from '@sentry/types';
12-
import * as _SentryUtils from '@sentry/utils';
13-
import * as _SentryWasm from '@sentry/wasm';

0 commit comments

Comments
 (0)