Skip to content

Commit 1510545

Browse files
author
Krystof Woldrich
committed
fix lint and snaps
1 parent 1768320 commit 1510545

8 files changed

Lines changed: 9 additions & 1542 deletions

File tree

packages/core/.eslintrc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ module.exports = {
1919
'metro.d.ts',
2020
'plugin/build/**/*',
2121
'expo.d.ts',
22+
'playground.js',
23+
'playground.d.ts',
2224
],
2325
overrides: [
2426
{

packages/core/src/js/playground/examples.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { captureException } from '@sentry/core';
22

33
import { NATIVE } from '../wrapper';
44

5-
65
// This is a placeholder to match the example code with what Sentry SDK users would see.
76
const Sentry = {
87
captureException,

packages/core/src/js/playground/modal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,20 @@ import {
55
Animated,
66
Image,
77
Modal,
8+
Platform,
89
Pressable,
910
SafeAreaView,
1011
StyleSheet,
1112
Text,
1213
useColorScheme,
1314
View,
14-
Platform,
1515
} from 'react-native';
1616

1717
import { getDevServer } from '../integrations/debugsymbolicatorutils';
1818
import { isExpo, isExpoGo, isWeb } from '../utils/environment';
19-
import { hi as hiAnimation, bug as bugAnimation, thumbsup as thumbsupAnimation } from './animations';
20-
import { hi as hiImage, bug as bugImage, thumbsup as thumbsupImage } from './images';
19+
import { bug as bugAnimation, hi as hiAnimation, thumbsup as thumbsupAnimation } from './animations';
2120
import { nativeCrashExample, tryCatchExample, uncaughtErrorExample } from './examples';
21+
import { bug as bugImage, hi as hiImage, thumbsup as thumbsupImage } from './images';
2222

2323
/**
2424
* Wrapper to add Sentry Playground to your application

packages/core/test/playground/__snapshots__/modal.test.tsx.snap

Lines changed: 0 additions & 1538 deletions
Large diffs are not rendered by default.

packages/core/test/playground/modal.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { render } from '@testing-library/react-native';
22
import * as React from 'react';
3+
34
import { SentryPlayground } from '../../src/js/playground/modal';
45

56
describe('PlaygroundComponent', () => {

packages/core/tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"include": [
44
"src/js/tools/**/*.ts",
55
"src/js/*.ts",
6+
"src/js/playground/*.ts",
7+
"src/js/playground/*.tsx",
68
"src/js/**/*.web.ts",
79
"src/js/**/*.web.tsx",
810
"src/js/*.tsx",

samples/react-native/src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import Animated, {
1616

1717
// Import the Sentry React Native SDK
1818
import * as Sentry from '@sentry/react-native';
19+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1920
import { withSentryPlayground } from '@sentry/react-native/playground';
2021
import { FeedbackWidget } from '@sentry/react-native';
2122

0 commit comments

Comments
 (0)