Skip to content

fix: wagmiConfig override matches SE-2 main client + arbitrum#122

Merged
technophile-04 merged 1 commit into
examplefrom
fix/next16-lint-compat-20-05-26
May 20, 2026
Merged

fix: wagmiConfig override matches SE-2 main client + arbitrum#122
technophile-04 merged 1 commit into
examplefrom
fix/next16-lint-compat-20-05-26

Conversation

@technophile-04
Copy link
Copy Markdown
Contributor

Why

After scaffold-eth/create-eth's upcoming backmerge (PR #427), the generated nextjs uses next 16 + eslint-config-next 16, which enables a stricter `@typescript-eslint/no-unused-vars`. The current wagmiConfig override replaces the base client with a simpler function that doesn't reference `hardhat`, `DEFAULT_ALCHEMY_API_KEY`, or `ScaffoldConfig` — those become unused imports and `yarn next:lint --max-warnings=0` fails.

What

Align the override with scaffold-eth-2 main's wagmiConfig client (rpcOverrides + isUsingDefaultKey RPC ordering + hardhat pollingInterval skip) and layer the arbitrum custom-RPC branch on top of it. Variable names and logic now match the scaffold main branch.

Test plan

  • Generate a project with this extension after create-eth's backmerge lands
  • `yarn next:lint --max-warnings=0` exits 0
  • Arbitrum One still routes to `http://127.0.0.1:8545\` first

🤖 Generated with Claude Code

The previous override replaced the base wagmiConfig client with a
simpler function that didn't reference hardhat, DEFAULT_ALCHEMY_API_KEY,
or ScaffoldConfig, leaving them as unused imports under next 16 +
eslint-config-next 16 strict no-unused-vars.

Align the override with scaffold-eth-2 main's client logic
(rpcOverrides + isUsingDefaultKey ordering + hardhat pollingInterval)
and layer the arbitrum custom-RPC branch on top.
@technophile-04 technophile-04 merged commit 1c0858d into example May 20, 2026
3 checks passed
@technophile-04 technophile-04 deleted the fix/next16-lint-compat-20-05-26 branch May 20, 2026 09:36
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