Skip to content

Commit 109acf8

Browse files
committed
style: fix styling errors
1 parent 76cc1ec commit 109acf8

File tree

43 files changed

+905
-870
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+905
-870
lines changed

biome.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@
2121
"indentWidth": 2,
2222
"lineWidth": 120,
2323
"ignore": [
24-
"*.md",
25-
".nxcache",
2624
"packages/browser-integration-tests/fixtures/loader.js",
27-
"packages/browser/examples/bundle.js"
25+
"packages/browser-integration-tests/suites/**/*.json",
26+
"packages/browser-integration-tests/loader-suites/**/*.js",
27+
"packages/browser-integration-tests/suites/stacktraces/**/*.js",
28+
"**/fixtures/*/*.json",
29+
"packages/browser/examples/bundle.js",
30+
"**/*.min.js"
2831
]
2932
},
3033
"javascript": {

packages/astro/src/integration/snippets.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ const buildCommonInitOptions = (options: SentryOptions): string => `dsn: ${
4343
environment: ${options.environment ? JSON.stringify(options.environment) : 'import.meta.env.PUBLIC_VERCEL_ENV'},
4444
release: ${options.release ? JSON.stringify(options.release) : 'import.meta.env.PUBLIC_VERCEL_GIT_COMMIT_SHA'},
4545
tracesSampleRate: ${options.tracesSampleRate ?? 1.0},${
46-
options.sampleRate ? `\n sampleRate: ${options.sampleRate},` : ''
47-
}`;
46+
options.sampleRate ? `\n sampleRate: ${options.sampleRate},` : ''
47+
}`;
4848

4949
/**
5050
* We don't include the `BrowserTracing` integration if the tracesSampleRate is set to 0.

packages/astro/src/server/meta.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ export function getTracingMetaTags(span: Span | undefined, hub: Hub): { sentryTr
3333
const dynamicSamplingContext = transaction
3434
? transaction.getDynamicSamplingContext()
3535
: dsc
36-
? dsc
37-
: client
38-
? getDynamicSamplingContextFromClient(traceId, client, scope)
39-
: undefined;
36+
? dsc
37+
: client
38+
? getDynamicSamplingContextFromClient(traceId, client, scope)
39+
: undefined;
4040

4141
const baggage = dynamicSamplingContextToSentryBaggageHeader(dynamicSamplingContext);
4242

packages/browser-integration-tests/utils/helpers.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,13 @@ export const countEnvelopes = async (
6868

6969
page.on('request', requestHandler);
7070

71-
setTimeout(() => {
72-
page.off('request', requestHandler);
73-
resolve(reqCount);
74-
}, options?.timeout || 1000);
71+
setTimeout(
72+
() => {
73+
page.off('request', requestHandler);
74+
resolve(reqCount);
75+
},
76+
options?.timeout || 1000,
77+
);
7578
});
7679

7780
if (options?.url) {

packages/browser/examples/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ function makeHappyTransport(options) {
3131
method: 'POST',
3232
referrerPolicy: 'origin',
3333
headers: options.headers,
34-
...options.fetchOptions
34+
...options.fetchOptions,
3535
};
3636

3737
// you define how `sendMyCustomRequest` works
38-
const sendMyCustomRequest = (r) => fetch(options.url, r);
38+
const sendMyCustomRequest = r => fetch(options.url, r);
3939
return sendMyCustomRequest(myCustomRequest).then(response => ({
4040
statusCode: response.status,
4141
headers: {

packages/browser/src/integrations/trycatch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function _wrapEventTarget(target: string): void {
195195
return;
196196
}
197197

198-
fill(proto, 'addEventListener', function (original: () => void): (
198+
fill(proto, 'addEventListener', function (original: VoidFunction,): (
199199
eventName: string,
200200
fn: EventListenerObject,
201201
options?: boolean | AddEventListenerOptions,

packages/browser/src/loader.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// prettier-ignore
2-
// Prettier disabled due to trailing comma not working in IE10/11
1+
// biome-ignore format: Disabled due to trailing comma not working in IE10/11
32
(function(
43
_window,
54
_document,

packages/browser/src/profiling/utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,8 @@ export function createProfilePayload(
143143
const transactionStartMs = start_timestamp
144144
? start_timestamp
145145
: typeof event.start_timestamp === 'number'
146-
? event.start_timestamp * 1000
147-
: Date.now();
146+
? event.start_timestamp * 1000
147+
: Date.now();
148148
const transactionEndMs = typeof event.timestamp === 'number' ? event.timestamp * 1000 : Date.now();
149149

150150
const profile: Profile = {

packages/browser/test/integration/.prettierrc

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/browser/test/integration/polyfills/fetch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
typeof exports === 'object' && typeof module !== 'undefined'
1111
? factory(exports)
1212
: typeof define === 'function' && define.amd
13-
? define(['exports'], factory)
14-
: factory((global.WHATWGFetch = {}));
13+
? define(['exports'], factory)
14+
: factory((global.WHATWGFetch = {}));
1515
})(this, function (exports) {
1616
'use strict';
1717

0 commit comments

Comments
 (0)