Skip to content

Commit 3a11d47

Browse files
authored
chore: upgrade next + eslint in report (#3069)
1 parent eb4734b commit 3a11d47

File tree

8 files changed

+4047
-2117
lines changed

8 files changed

+4047
-2117
lines changed

e2e-report/.eslintrc.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

e2e-report/app/badge/route.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ImageResponse } from 'next/og'
22
import testData from '@/utils/data'
3-
import { badgeSettings, badgeSize } from '@/utils/consts'
3+
import { badgeSettings } from '@/utils/consts'
44

55
export const dynamic = 'force-static'
66

@@ -16,7 +16,7 @@ const bgStyles = {
1616
}
1717

1818
// Generate an SVG badge with test status and target Next.js version
19-
export async function GET(request) {
19+
export async function GET() {
2020
const valueStyle =
2121
bgStyles[testData.failed === 0 ? 'ok' : testData.unknownFailuresCount > 0 ? 'error' : 'warning']
2222

e2e-report/components/copy-badge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client'
22
import { useEffect, useState } from 'react'
33
import { CopyIcon } from './icons'
4-
import { badgeDisplaySize, badgeSettings } from '@/utils/consts'
4+
import { badgeSettings } from '@/utils/consts'
55

66
export default function CopyBadgeButton() {
77
const [host, setHost] = useState('')

e2e-report/data/test-results.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8528,7 +8528,7 @@
85288528
"link": "https://github.com/netlify/next-runtime-minimal/issues/564"
85298529
},
85308530
{
8531-
"name": "skip-trailing-slash-redirect should be able to redirect locale casing $1",
8531+
"name": "skip-trailing-slash-redirect should be able to redirect locale casing $2",
85328532
"status": "failed",
85338533
"retries": 0,
85348534
"reason": "does not correctly handle user middleware that redirects to path with canonical locale casing when app enables `skipMiddlewareUrlNormalize` and path contains locale slug with non-canonical casing",

e2e-report/eslint.config.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { FlatCompat } from '@eslint/eslintrc'
2+
3+
const compat = new FlatCompat({
4+
baseDirectory: import.meta.dirname,
5+
})
6+
7+
const eslintConfig = [
8+
{
9+
ignores: ['node_modules/**', '.next/**', 'tailwind.config.js'],
10+
},
11+
...compat.extends('next/core-web-vitals', 'next/typescript'),
12+
]
13+
14+
export default eslintConfig

e2e-report/next.config.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
/** @type {import('next').NextConfig} */
2-
const nextConfig = {}
2+
const nextConfig = {
3+
outputFileTracingRoot: import.meta.dirname,
4+
}
35

46
export default nextConfig

0 commit comments

Comments
 (0)