Skip to content

Commit

Permalink
Fix linter.
Browse files Browse the repository at this point in the history
  • Loading branch information
onurtemizkan committed Jun 21, 2023
1 parent f0d8e74 commit a6ce831
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 27 deletions.
30 changes: 12 additions & 18 deletions packages/react/test/integration/create-hash-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,6 @@
"test": "playwright test",
"posttest": "rimraf build node_modules"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@playwright/test": "1.31.1",
"serve": "14.0.1"
Expand All @@ -62,5 +44,17 @@
"volta": {
"node": "16.19.0",
"yarn": "1.22.19"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import * as Sentry from '@sentry/react';
import React from 'react';
import ReactDOM from 'react-dom/client';
import * as Sentry from '@sentry/react';
import {
useLocation,
useNavigationType,
createHashRouter,
createRoutesFromChildren,
matchRoutes,
RouterProvider,
createHashRouter,
useLocation,
useNavigationType,
} from 'react-router-dom';

import Index from './pages/Index';
import User from './pages/User';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as React from 'react';
import * as Sentry from '@sentry/react';
import * as React from 'react';
import { Link } from 'react-router-dom';

const Index = () => {
const Index = (): JSX.Element => {
return (
<>
<input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

const User = () => {
const User = (): JSX.Element => {
return <p>I am a blank page :)</p>;
};

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Transaction } from '@sentry/types';
import { expect, test } from '@playwright/test';
import type { Transaction } from '@sentry/types';

import { getMultipleSentryEnvelopeRequests } from '../../utils';
import { test, expect } from '@playwright/test';

test('Sends an error to Sentry', async ({ page }) => {
await page.goto('/');
Expand Down
4 changes: 4 additions & 0 deletions packages/react/test/integration/run.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
/* eslint-disable no-console */
import { exec } from 'child_process';
import * as fs from 'fs';

async function run(): Promise<void> {
// The ESLint plugin `react-scripts` uses is not compatible with our setup.
process.env.DISABLE_ESLINT_PLUGIN = 'true';

fs.readdirSync(__dirname, { withFileTypes: true })
.filter(testApp => testApp.isDirectory())
.forEach(testApp => {
Expand Down

0 comments on commit a6ce831

Please sign in to comment.