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
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ node_modules
# Next js files
.next

# Slidev build output (npm run slides:build)
dist

# Local env file
.env.local

Expand Down
16 changes: 16 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import coreWebVitals from 'eslint-config-next/core-web-vitals'

// Next 16 removed `next lint`, so eslint runs directly. eslint-config-next 16 ships
// a native flat config, which replaces the previous .eslintrc.json that extended
// "next/core-web-vitals".
const config = [
{
// `next lint` only walked app/pages/components/lib/src. `eslint .` walks the whole
// tree, so generated output at the repo root has to be excluded explicitly.
// `dist/**` is the slidev build output (`npm run slides:build`).
ignores: ['.next/**', 'out/**', 'dist/**']
},
...coreWebVitals
]

export default config
7 changes: 6 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ import withBundleAnalyzer from '@next/bundle-analyzer'
* @type {import('next').NextConfig}
*/
const nextConfig = {
// Next 16 writes AGENTS.md and CLAUDE.md into the project root on `next dev`.
// This is a workshop repo, so attendees should not find two unexplained files
// in their clone.
agentRules: false,
images: {
domains: ['image.tmdb.org']
// `images.domains` was deprecated in Next 16 in favour of `remotePatterns`.
remotePatterns: [{ protocol: 'https', hostname: 'image.tmdb.org' }]
}
}

Expand Down
Loading
Loading