Skip to content

Commit 42dfc6b

Browse files
committed
chore: upgrade to eslint@9
1 parent 4a4dc2e commit 42dfc6b

File tree

6 files changed

+2393
-937
lines changed

6 files changed

+2393
-937
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/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

0 commit comments

Comments
 (0)