Skip to content

Commit 0867a99

Browse files
authored
chore(lint): Remove biome-ignore comments (#15500)
These are no longer required since #15461
1 parent 8973d53 commit 0867a99

File tree

38 files changed

+0
-43
lines changed

38 files changed

+0
-43
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
1-
// biome-ignore lint/nursery/noUnusedImports:
21
import * as _SentryReplay from '@sentry-internal/replay';
3-
// biome-ignore lint/nursery/noUnusedImports: we need to import the SDK to ensure tsc check the types
42
import * as _SentryBrowser from '@sentry/browser';
5-
// biome-ignore lint/nursery/noUnusedImports:
63
import * as _SentryCore from '@sentry/core';
7-
// biome-ignore lint/nursery/noUnusedImports:
84
import * as _SentryNode from '@sentry/node';
9-
// biome-ignore lint/nursery/noUnusedImports:
105
import * as _SentryWasm from '@sentry/wasm';

dev-packages/e2e-tests/test-applications/react-17/src/pages/Index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32
import { Link } from 'react-router-dom';
43

dev-packages/e2e-tests/test-applications/react-17/src/pages/User.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32

43
const User = () => {

dev-packages/e2e-tests/test-applications/react-19/src/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/react';
2-
// biome-ignore lint/nursery/noUnusedImports: <explanation>
32
import React from 'react';
43
import ReactDOM from 'react-dom/client';
54
import Index from './pages/Index';

dev-packages/e2e-tests/test-applications/react-create-browser-router/src/pages/Index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32
import { Link } from 'react-router-dom';
43

dev-packages/e2e-tests/test-applications/react-create-browser-router/src/pages/LazyLoadedInnerRoute.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/react';
2-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
32
import * as React from 'react';
43
import { Route, Routes } from 'react-router-dom';
54

dev-packages/e2e-tests/test-applications/react-create-browser-router/src/pages/User.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32

43
const User = () => {

dev-packages/e2e-tests/test-applications/react-create-hash-router/src/pages/Index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32
import { Link } from 'react-router-dom';
43

dev-packages/e2e-tests/test-applications/react-create-hash-router/src/pages/User.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32

43
const User = () => {

dev-packages/e2e-tests/test-applications/react-create-memory-router/src/pages/Index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32

43
const Index = () => {

dev-packages/e2e-tests/test-applications/react-create-memory-router/src/pages/User.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32
import { Link } from 'react-router-dom';
43

dev-packages/e2e-tests/test-applications/react-router-5/src/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as Sentry from '@sentry/react';
22
import { createBrowserHistory } from 'history';
3-
// biome-ignore lint/nursery/noUnusedImports: <explanation>
43
import React from 'react';
54
import ReactDOM from 'react-dom/client';
65
import { Route, Router, Switch } from 'react-router-dom';

dev-packages/e2e-tests/test-applications/react-router-5/src/pages/Index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/react';
2-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
32
import * as React from 'react';
43
import { Link } from 'react-router-dom';
54

dev-packages/e2e-tests/test-applications/react-router-5/src/pages/User.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32

43
const User = (params: { id: string }) => {

dev-packages/e2e-tests/test-applications/react-router-6-descendant-routes/src/pages/Index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32
import { Link } from 'react-router-dom';
43

dev-packages/e2e-tests/test-applications/react-router-6-use-routes/src/pages/Index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/react';
2-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
32
import * as React from 'react';
43
import { Link } from 'react-router-dom';
54

dev-packages/e2e-tests/test-applications/react-router-6-use-routes/src/pages/User.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32

43
const User = () => {

dev-packages/e2e-tests/test-applications/react-router-6/src/pages/Index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32
import { Link } from 'react-router-dom';
43

dev-packages/e2e-tests/test-applications/react-router-6/src/pages/SSE.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/react';
2-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
32
import * as React from 'react';
43

54
const fetchSSE = async ({ timeout, abort = false }: { timeout: boolean; abort?: boolean }) => {

dev-packages/e2e-tests/test-applications/react-router-6/src/pages/User.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32

43
const User = () => {

dev-packages/e2e-tests/test-applications/react-router-7-cross-usage/src/pages/Index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32
import { Link } from 'react-router-dom';
43

dev-packages/e2e-tests/test-applications/react-router-7-spa/src/pages/Index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32
import { Link } from 'react-router';
43

dev-packages/e2e-tests/test-applications/react-router-7-spa/src/pages/SSE.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/react';
2-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
32
import * as React from 'react';
43

54
const fetchSSE = async ({ timeout, abort = false }: { timeout: boolean; abort?: boolean }) => {

dev-packages/e2e-tests/test-applications/react-router-7-spa/src/pages/User.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32

43
const User = () => {

dev-packages/e2e-tests/test-applications/react-send-to-sentry/src/pages/Index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import * as Sentry from '@sentry/react';
2-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
32
import * as React from 'react';
43
import { Link } from 'react-router-dom';
54

dev-packages/e2e-tests/test-applications/react-send-to-sentry/src/pages/User.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
21
import * as React from 'react';
32

43
const User = () => {

dev-packages/size-limit-gh-action/utils/SizeLimitFormatter.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ export class SizeLimitFormatter {
9191

9292
return results.reduce((current, result) => {
9393
return {
94-
// biome-ignore lint/performance/noAccumulatingSpread: <explanation>
9594
...current,
9695
[result.name]: {
9796
name: result.name,

packages/browser/test/loader.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
// biome-ignore format: Disabled due to trailing comma not working in IE10/11
21
(function(
32
_window,
43
_document,

packages/feedback/src/modal/components/Dialog.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { FeedbackFormData, FeedbackInternalOptions } from '@sentry/core';
2-
// biome-ignore lint/nursery/noUnusedImports: reason
32
import { Fragment, h } from 'preact'; // eslint-disable-line @typescript-eslint/no-unused-vars
43
import type { VNode } from 'preact';
54
import { useCallback, useMemo, useState } from 'preact/hooks';

packages/feedback/src/modal/components/DialogHeader.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import type { FeedbackInternalOptions } from '@sentry/core';
2-
// biome-ignore lint/nursery/noUnusedImports: reason
32
import { h } from 'preact'; // eslint-disable-line @typescript-eslint/no-unused-vars
43
import type { VNode } from 'preact';
54
import { useMemo } from 'preact/hooks';

packages/feedback/src/modal/components/Form.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type {
55
FeedbackScreenshotIntegration,
66
SendFeedback,
77
} from '@sentry/core';
8-
// biome-ignore lint/nursery/noUnusedImports: reason
98
import { h } from 'preact'; // eslint-disable-line @typescript-eslint/no-unused-vars
109
import type { JSX, VNode } from 'preact';
1110
import { useCallback, useState } from 'preact/hooks';

packages/feedback/src/screenshot/components/ScreenshotEditor.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type { FeedbackInternalOptions, FeedbackModalIntegration } from '@sentry/core';
22
import type { ComponentType, VNode, h as hType } from 'preact';
3-
// biome-ignore lint/nursery/noUnusedImports: reason
43
import { h } from 'preact'; // eslint-disable-line @typescript-eslint/no-unused-vars
54
import type * as Hooks from 'preact/hooks';
65
import { WINDOW } from '../../constants';

packages/nextjs/src/config/loaders/valueInjectionLoader.ts

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export type ValueInjectionLoaderOptions = {
1212
// This regex is shamelessly stolen from: https://github.com/getsentry/sentry-javascript-bundler-plugins/blob/7f984482c73e4284e8b12a08dfedf23b5a82f0af/packages/bundler-plugin-core/src/index.ts#L535-L539
1313
const SKIP_COMMENT_AND_DIRECTIVE_REGEX =
1414
// Note: CodeQL complains that this regex potentially has n^2 runtime. This likely won't affect realistic files.
15-
// biome-ignore lint/complexity/useRegexLiterals: No user input
1615
new RegExp('^(?:\\s*|/\\*(?:.|\\r|\\n)*?\\*/|//.*[\\n\\r])*(?:"[^"]*";?|\'[^\']*\';?)?');
1716

1817
/**

packages/nextjs/src/config/templates/serverComponentWrapperTemplate.ts

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as Sentry from '@sentry/nextjs';
44
// API) we use a shim if it doesn't exist. The logic for this is in the wrapping loader.
55
import * as origModule from '__SENTRY_NEXTJS_REQUEST_ASYNC_STORAGE_SHIM__';
66
// @ts-expect-error We use `__SENTRY_WRAPPING_TARGET_FILE__` as a placeholder for the path to the file being wrapped.
7-
// biome-ignore lint/nursery/noUnusedImports: Biome doesn't understand the shim with variable import path
87
import * as serverComponentModule from '__SENTRY_WRAPPING_TARGET_FILE__';
98

109
import type { RequestAsyncStorage } from './requestAsyncStorageShim';

packages/react/test/reactrouter-cross-usage.test.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import {
3535
wrapUseRoutesV6,
3636
} from '../src/reactrouterv6';
3737

38-
3938
const mockStartBrowserTracingPageLoadSpan = vi.fn();
4039
const mockStartBrowserTracingNavigationSpan = vi.fn();
4140

@@ -76,7 +75,6 @@ vi.mock('@sentry/core', async requireActual => {
7675
};
7776
});
7877

79-
8078
vi.mock('@sentry/core', async requireActual => {
8179
const actual = (await requireActual()) as any;
8280
return {

packages/react/test/reactrouterv3.test.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
setCurrentClient,
1414
} from '@sentry/core';
1515
import { act, render } from '@testing-library/react';
16-
// biome-ignore lint/nursery/noUnusedImports: <explanation>
1716
import * as React from 'react';
1817
import { IndexRoute, Route, Router, createMemoryHistory, createRoutes, match } from 'react-router-3';
1918
import { reactRouterV3BrowserTracingIntegration } from '../src/reactrouterv3';

packages/react/test/reactrouterv4.test.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
} from '@sentry/core';
1414
import { act, render } from '@testing-library/react';
1515
import { createMemoryHistory } from 'history-4';
16-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
1716
import * as React from 'react';
1817
import { Route, Router, Switch, matchPath } from 'react-router-4';
1918

packages/react/test/reactrouterv5.test.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import {
1313
} from '@sentry/core';
1414
import { act, render } from '@testing-library/react';
1515
import { createMemoryHistory } from 'history-4';
16-
// biome-ignore lint/nursery/noUnusedImports: Need React import for JSX
1716
import * as React from 'react';
1817
import { Route, Router, Switch, matchPath } from 'react-router-5';
1918

0 commit comments

Comments
 (0)