Skip to content

chore: ignore .next in ESLint and drop unused database devDependencies - #57

Merged
bvdaakster merged 1 commit into
mainfrom
chore/lint-ignore-unused-deps
Nov 28, 2026
Merged

bvdaakster merged 1 commit into
mainfrom
chore/lint-ignore-unused-deps

Conversation

@bvdaakster

Copy link
Copy Markdown
Contributor

Two dev-only chores. No published source changes.

ESLint ignores .next

eslint.config.js applied no ignore for the dev app's Next.js build output, so pnpm lint linted the compiled bundles in dev/.next. A global ignores: ['**/.next/'] entry fixes that.

pnpm lint with a dev/.next build output present (121 MB):

time
before killed after 8 minutes, still running
after 14 s (same as without a build output)

Unused devDependencies removed

  • @payloadcms/db-mongodb
  • @payloadcms/db-postgres
  • mongodb-memory-server

None is imported in src, dev, the tests, scripts, the configs or the workflows; the dev app and the integration tests use @payloadcms/db-sqlite. The one reference was serverExternalPackages: ['mongodb-memory-server'] in dev/next.config.mjs, which is removed too. A comment in pnpm-workspace.yaml that named db-postgres is updated; the esbuild override it describes is still needed for db-sqlite.

Checked locally: lint (0 errors), both typechecks, test:int (133 passed), build, test:published-exports, test:declarations, pnpm audit clean.

🤖 Generated with Claude Code

https://claude.ai/code/session_0122PV8TJ7ELGdAX7H2hdrRU

ESLint had no ignore for the dev app's Next.js build output, so `pnpm lint`
linted every compiled bundle under dev/.next and ran for minutes.

@payloadcms/db-mongodb, @payloadcms/db-postgres and mongodb-memory-server
were not imported anywhere: the dev app and the tests use SQLite only. The
only reference was a serverExternalPackages entry in dev/next.config.mjs,
removed with them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0122PV8TJ7ELGdAX7H2hdrRU
@claude

claude Bot commented Nov 28, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@bvdaakster
bvdaakster merged commit 7cb9b30 into main Nov 28, 2026
6 checks passed
@bvdaakster
bvdaakster deleted the chore/lint-ignore-unused-deps branch November 28, 2026 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant