infra: add linting and formatting for js projects (#230)
* wip * wip * wip * format * wip(mobile): lint and format * cleanup * nits * nits * idiomatic react * nit * format all root files
This commit was merged in pull request #230.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import * as Sentry from "@sentry/electron/renderer";
|
||||
import { appConfig, appEnv } from "@/config/env";
|
||||
import { installErrorSinks } from "@/lib/errors";
|
||||
import * as Sentry from '@sentry/electron/renderer';
|
||||
import { appConfig, appEnv } from '@/config/env';
|
||||
import { installErrorSinks } from '@/lib/errors';
|
||||
|
||||
/**
|
||||
* Initialise Sentry for a renderer process. No-ops when `sentryDsn` is empty
|
||||
@@ -16,12 +16,11 @@ export function initSentryRenderer(): void {
|
||||
});
|
||||
|
||||
installErrorSinks({
|
||||
capture: (err, context) =>
|
||||
Sentry.captureException(err, { extra: context }),
|
||||
capture: (err, context) => Sentry.captureException(err, { extra: context }),
|
||||
breadcrumb: (err, context) =>
|
||||
Sentry.addBreadcrumb({
|
||||
category: "error",
|
||||
level: "error",
|
||||
category: 'error',
|
||||
level: 'error',
|
||||
message: err instanceof Error ? err.message : String(err),
|
||||
data: context,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user