Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions bugbait/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { dirname } from 'node:path'
import { fileURLToPath } from 'node:url'
import { FlatCompat } from '@eslint/eslintrc'

/*
* Same shape as `traces/eslint.config.mjs`, and for the same reason: `eslint-config-next@15.5`
* still ships eslintrc-format objects, so `compat.extends()` is the only form that resolves,
* and `next lint` with no config on disk drops into an interactive prompt rather than linting.
*/
const compat = new FlatCompat({
baseDirectory: dirname(fileURLToPath(import.meta.url)),
})

const eslintConfig = [
{
ignores: ['.next/**', 'out/**', 'node_modules/**', 'public/**', 'next-env.d.ts'],
},
...compat.extends('next/core-web-vitals', 'next/typescript'),
]

export default eslintConfig
1 change: 1 addition & 0 deletions bugbait/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion bugbait/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "next dev --port 3001",
"build": "next build",
"start": "next start --port 3001",
"lint": "next lint",
"lint": "eslint . --max-warnings=0",
"typecheck": "tsc --noEmit",
"record:fixtures": "node scripts/record-fixtures.mjs"
},
Expand All @@ -20,6 +20,7 @@
"rrweb": "2.0.0-alpha.18"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.6",
"@types/node": "^22.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
Expand Down
25 changes: 25 additions & 0 deletions traces/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { dirname } from 'node:path'
import { fileURLToPath } from 'node:url'
import { FlatCompat } from '@eslint/eslintrc'

/*
* Flat config, driven through `FlatCompat`, because `eslint-config-next@15.5` still ships
* eslintrc-format objects — `core-web-vitals.js` is a bare `module.exports = { extends: [...] }`,
* not a flat array. Next 16 adds real flat exports you can spread directly; until this project
* moves, `compat.extends()` is the only form that resolves.
*
* This file exists because `next lint` is gone in Next 16 and already deprecated here: with no
* config on disk it drops into an interactive "how would you like to configure ESLint?" prompt,
* so `npm run lint` in a clean clone never returns a lint result at all. The script now calls
* `eslint .` directly.
*/
const compat = new FlatCompat({
baseDirectory: dirname(fileURLToPath(import.meta.url)),
})

export default [
{
ignores: ['.next/**', 'out/**', 'node_modules/**', 'public/**'],
},
...compat.extends('next/core-web-vitals', 'next/typescript'),
]
1 change: 1 addition & 0 deletions traces/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion traces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint": "eslint . --ignore-pattern next-env.d.ts",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest"
Expand All @@ -23,6 +23,7 @@
"zustand": "^5.0.0"
},
"devDependencies": {
"@eslint/eslintrc": "^3.3.6",
"@types/node": "^22.0.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.0.0",
Expand Down
2 changes: 1 addition & 1 deletion traces/src/components/timeline/timeline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function Timeline() {
Nothing on this timeline yet — no recording is loaded.
</span>
<span className="mt-0.5 text-meta text-faint">
Load a sample from the list above. Your marks and the agent's findings will then share this
Load a sample from the list above. Your marks and the agent&apos;s findings will then share this
axis, labelled by who found them.
</span>
</p>
Expand Down