Skip to content

Commit 72d3b27

Browse files
committed
Autoformat
1 parent 0de030f commit 72d3b27

File tree

2 files changed

+27
-19
lines changed

2 files changed

+27
-19
lines changed

packages/feedback-screenshot/src/screenshot.tsx

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { convertIntegrationFnToClass, defineIntegration } from '@sentry/core';
2-
import type { Integration, IntegrationClass, IntegrationFn } from '@sentry/types';
3-
import { ScreenshotButton } from './screenshotButton';
4-
import { ScreenshotWidget } from './screenshotWidget';
5-
import { GLOBAL_OBJ } from '@sentry/utils';
6-
import { h, render } from 'preact';
1+
import {convertIntegrationFnToClass, defineIntegration} from '@sentry/core';
2+
import type {Integration, IntegrationClass, IntegrationFn} from '@sentry/types';
3+
import {ScreenshotButton} from './screenshotButton';
4+
import {ScreenshotWidget} from './screenshotWidget';
5+
import {GLOBAL_OBJ} from '@sentry/utils';
6+
import {h, render} from 'preact';
77

88
interface FeedbackScreenshotOptions {
99
el: Element;
@@ -19,13 +19,18 @@ const INTEGRATION_NAME = 'FeedbackScreenshot';
1919
const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;
2020

2121
/** Exported only for type safe tests. */
22-
export const _feedbackScreenshotIntegration = ((options: Partial<FeedbackScreenshotOptions> = {}) => {
22+
export const _feedbackScreenshotIntegration = ((
23+
options: Partial<FeedbackScreenshotOptions> = {}
24+
) => {
2325
return {
2426
name: INTEGRATION_NAME,
2527
// eslint-disable-next-line @typescript-eslint/no-empty-function
2628
setupOnce() {},
2729
getOptions(): FeedbackScreenshotIntegrationOptions {
28-
return { el: options.el || WINDOW.document.createElement('div'), props: options.props || null };
30+
return {
31+
el: options.el || WINDOW.document.createElement('div'),
32+
props: options.props || null,
33+
};
2934
},
3035
renderScreenshotWidget: (options: FeedbackScreenshotOptions) => {
3136
return render(<ScreenshotWidget />, options.el);
@@ -39,15 +44,17 @@ export const _feedbackScreenshotIntegration = ((options: Partial<FeedbackScreens
3944
/**
4045
* Add this in addition to `replayIntegration()` to enable canvas recording.
4146
*/
42-
export const feedbackScreenshotIntegration = defineIntegration(_feedbackScreenshotIntegration);
47+
export const feedbackScreenshotIntegration = defineIntegration(
48+
_feedbackScreenshotIntegration
49+
);
4350

4451
/**
4552
* @deprecated Use `feedbackScreenshotIntegration()` instead
4653
*/
4754
// eslint-disable-next-line deprecation/deprecation
4855
export const FeedbackScreenshot = convertIntegrationFnToClass(
4956
INTEGRATION_NAME,
50-
feedbackScreenshotIntegration,
57+
feedbackScreenshotIntegration
5158
) as IntegrationClass<
5259
Integration & {
5360
getOptions: () => FeedbackScreenshotIntegrationOptions;

packages/feedback-screenshot/tsconfig.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@
22
"extends": "../../tsconfig.json",
33
"compilerOptions": {
44
"module": "esnext",
5+
"moduleResolution": "nodenext",
56

6-
/* Preact Config */
7-
"jsx": "react-jsx",
8-
"jsxImportSource": "preact",
9-
"skipLibCheck": true,
10-
"baseUrl": "./",
11-
"paths": {
12-
"react": ["./node_modules/preact/compat/"],
13-
"react-dom": ["./node_modules/preact/compat/"]
14-
}
7+
/* Preact Config */
8+
"jsx": "react-jsx",
9+
"jsxImportSource": "preact",
10+
"skipLibCheck": true,
11+
"baseUrl": "./",
12+
"paths": {
13+
"react": ["./node_modules/preact/compat/"],
14+
"react-dom": ["./node_modules/preact/compat/"]
15+
}
1516
},
1617
"include": ["src/**/*.ts"]
1718
}

0 commit comments

Comments
 (0)