Skip to content

Commit 84f9466

Browse files
committed
Fix linter.
1 parent da57a94 commit 84f9466

File tree

6 files changed

+27
-27
lines changed

6 files changed

+27
-27
lines changed

packages/react/test/integration/create-hash-router/package.json

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,24 +25,6 @@
2525
"test": "playwright test",
2626
"posttest": "rimraf build node_modules"
2727
},
28-
"eslintConfig": {
29-
"extends": [
30-
"react-app",
31-
"react-app/jest"
32-
]
33-
},
34-
"browserslist": {
35-
"production": [
36-
">0.2%",
37-
"not dead",
38-
"not op_mini all"
39-
],
40-
"development": [
41-
"last 1 chrome version",
42-
"last 1 firefox version",
43-
"last 1 safari version"
44-
]
45-
},
4628
"devDependencies": {
4729
"@playwright/test": "1.31.1",
4830
"serve": "14.0.1"
@@ -62,5 +44,17 @@
6244
"volta": {
6345
"node": "16.19.0",
6446
"yarn": "1.22.19"
47+
},
48+
"browserslist": {
49+
"production": [
50+
">0.2%",
51+
"not dead",
52+
"not op_mini all"
53+
],
54+
"development": [
55+
"last 1 chrome version",
56+
"last 1 firefox version",
57+
"last 1 safari version"
58+
]
6559
}
6660
}

packages/react/test/integration/create-hash-router/src/index.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1+
import * as Sentry from '@sentry/react';
12
import React from 'react';
23
import ReactDOM from 'react-dom/client';
3-
import * as Sentry from '@sentry/react';
44
import {
5-
useLocation,
6-
useNavigationType,
5+
createHashRouter,
76
createRoutesFromChildren,
87
matchRoutes,
98
RouterProvider,
10-
createHashRouter,
9+
useLocation,
10+
useNavigationType,
1111
} from 'react-router-dom';
12+
1213
import Index from './pages/Index';
1314
import User from './pages/User';
1415

packages/react/test/integration/create-hash-router/src/pages/Index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import * as React from 'react';
21
import * as Sentry from '@sentry/react';
2+
import * as React from 'react';
33
import { Link } from 'react-router-dom';
44

5-
const Index = () => {
5+
const Index = (): JSX.Element => {
66
return (
77
<>
88
<input

packages/react/test/integration/create-hash-router/src/pages/User.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22

3-
const User = () => {
3+
const User = (): JSX.Element => {
44
return <p>I am a blank page :)</p>;
55
};
66

packages/react/test/integration/create-hash-router/tests/test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
import { Transaction } from '@sentry/types';
1+
import { expect, test } from '@playwright/test';
2+
import type { Transaction } from '@sentry/types';
3+
24
import { getMultipleSentryEnvelopeRequests } from '../../utils';
3-
import { test, expect } from '@playwright/test';
45

56
test('Sends an error to Sentry', async ({ page }) => {
67
await page.goto('/');

packages/react/test/integration/run.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1+
/* eslint-disable no-console */
12
import { exec } from 'child_process';
23
import * as fs from 'fs';
34

45
async function run(): Promise<void> {
6+
// The ESLint plugin `react-scripts` uses is not compatible with our setup.
7+
process.env.DISABLE_ESLINT_PLUGIN = 'true';
8+
59
fs.readdirSync(__dirname, { withFileTypes: true })
610
.filter(testApp => testApp.isDirectory())
711
.forEach(testApp => {

0 commit comments

Comments
 (0)