Skip to content

Ensure eslint is properly configured for all packages (0xsequence#971)#303

Merged
Dargon789 merged 3 commits intoDargon789:masterfrom
0xsequence:master
Feb 24, 2026
Merged

Ensure eslint is properly configured for all packages (0xsequence#971)#303
Dargon789 merged 3 commits intoDargon789:masterfrom
0xsequence:master

Conversation

@Dargon789
Copy link
Copy Markdown
Owner

No description provided.

corbanbrook and others added 3 commits February 23, 2026 15:12
* Updating happy-dom, vitest, prettier, and syncpack dev dependencies

* Updating turbo repo

* Updating lefthook

* Updating rimraf

* Updating @types/node

* Updating dotenv

* Updating nodemon and esbuild for primitives-cli
…ages/indexer (#969)

* Move indexer clients to packages/services/indexer and remove old packages/indexer

* Disable noUncheckedIndexedAccess for indexer package
@codesandbox
Copy link
Copy Markdown

codesandbox Bot commented Feb 24, 2026

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 24, 2026

@corbanbrook is attempting to deploy a commit to the Foundry development Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Copy Markdown

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @Dargon789, your pull request is larger than the review limit of 150000 diff characters

@snyk-io
Copy link
Copy Markdown

snyk-io Bot commented Feb 24, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
🔚 Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @Dargon789, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly refines the development environment by standardizing ESLint configurations across all packages, ensuring consistent code quality and maintainability. It also brings various development dependencies up-to-date, enhancing overall project stability and leveraging newer tooling capabilities. Furthermore, several code generation artifacts were updated, and minor type safety and module import adjustments were made to align with modern TypeScript practices.

Highlights

  • ESLint Configuration: Introduced new ESLint configuration files (eslint.config.js) across various packages (@0xsequence/services/api, @0xsequence/services/builder, @0xsequence/services/guard, @0xsequence/services/identity-instrument, @0xsequence/services/indexer, @0xsequence/services/marketplace, @0xsequence/services/metadata, @0xsequence/services/relayer, @0xsequence/services/userdata, @0xsequence/utils/abi, @0xsequence/wallet/core, @0xsequence/wallet/dapp-client, @0xsequence/wallet/primitives-cli, @0xsequence/wallet/primitives, @0xsequence/wallet/wdk, @repo/ui) to standardize code quality and ensure proper linting across the monorepo. Existing .mjs config files were renamed to .js.
  • Dependency Updates: Updated several core development dependencies including lefthook to ^2.1.1, prettier to ^3.8.1, rimraf to ^6.1.3, syncpack to ^14.0.0, turbo to ^2.8.10, @types/node to ^25.3.0, and vitest to ^4.0.18 to leverage the latest features and security patches.
  • Build and Lint Script Enhancements: Modified the root package.json to update lint script to use turbo lint --continue and deps:lint/deps:fix scripts to use new syncpack commands. Individual package package.json files were updated to include a lint script using eslint . --max-warnings 0.
  • Code Generation and Type Safety Improvements: Regenerated indexer.gen.ts and indexergw.gen.ts files in @0xsequence/services/indexer to reflect updated schema definitions, including changes to ContractInfoExtensions and NativeTokenBalance types. Also, tsconfig.json in @0xsequence/services/indexer was updated to disable noUncheckedIndexedAccess temporarily for better compatibility with generated code.
  • Module System Modernization: Introduced `
Changelog
  • extras/docs/package.json
    • Updated @types/node dependency to ^25.3.0.
  • extras/web/package.json
    • Updated @types/node dependency to ^25.3.0.
  • lefthook.yml
    • Added lint and typecheck commands to the pre-commit hook.
  • package.json
    • Updated lint script to use turbo lint --continue.
    • Modified deps:lint to syncpack lint --dependency-types prod,dev.
    • Changed deps:fix to syncpack fix.
    • Updated lefthook to ^2.1.1.
    • Updated prettier to ^3.8.1.
    • Updated rimraf to ^6.1.3.
    • Updated syncpack to ^14.0.0.
    • Updated turbo to ^2.8.10.
  • packages/indexer/src/indexer.gen.ts
    • Removed the auto-generated indexer client file.
  • packages/indexer/src/indexergw.gen.ts
    • Updated WebrpcSchemaHash to b978d153702d614d5f1b9c98ff7f2e5857cccfd6.
    • Modified ContractInfoExtensions properties to be optional.
    • Expanded NativeTokenBalance interface with new fields like name, symbol, balanceUSD, priceUSD, priceUpdatedAt, and errorReason.
    • Added balanceUSD, priceUSD, and priceUpdatedAt to TokenBalance interface.
    • Updated error handling to use error instanceof Error ? error.message : String(error) for consistency.
  • packages/services/api/package.json
    • Added `
  • packages/services/api/src/index.ts
    • Updated import paths for generated files to include .js extension.
    • Changed type of headers object from { [key: string]: any } to Record<string, string>.
  • packages/services/builder/package.json
    • Added `
  • packages/services/builder/src/index.ts
    • Updated import paths for generated files to include .js extension.
    • Changed type of headers object from { [key: string]: any } to Record<string, string>.
  • packages/services/guard/package.json
    • Added lint script to eslint . --max-warnings 0.
    • Updated @types/node to ^25.3.0.
    • Added @repo/eslint-config workspace dependency.
    • Updated vitest to ^4.0.18.
  • packages/services/guard/src/local.ts
    • Removed Hash import from ox.
    • Modified signPayload parameters to be unused (_wallet, _chainId, _type, _message, _signatures, _token) to align with implementation.
  • packages/services/guard/src/sequence.ts
    • Removed Hash import from ox.
  • packages/services/guard/test/sequence.test.ts
    • Updated import paths to include .js extension.
    • Changed global.fetch to globalThis.fetch.
    • Adjusted guard.signPayload call to use customChainId.
  • packages/services/identity-instrument/eslint.config.js
    • Added new ESLint configuration file.
  • packages/services/identity-instrument/package.json
    • Added lint script to eslint . --max-warnings 0.
    • Added typecheck script to tsc --noEmit.
    • Updated @types/node to ^25.3.0.
    • Added @repo/eslint-config workspace dependency.
    • Updated vitest to ^4.0.18.
  • packages/services/indexer/eslint.config.js
    • Added new ESLint configuration file.
  • packages/services/indexer/package.json
    • Added `
  • packages/services/indexer/src/index.ts
    • Updated import paths for generated files to include .js extension.
    • Changed type of headers object from { [key: string]: any } to Record<string, string>.
  • packages/services/indexer/tsconfig.json
    • Added noUncheckedIndexedAccess: false compiler option.
  • packages/services/marketplace/eslint.config.js
    • Added new ESLint configuration file.
  • packages/services/marketplace/package.json
    • Added `
  • packages/services/marketplace/src/index.ts
    • Updated import paths for generated files to include .js extension.
    • Changed type of headers object from { [key: string]: any } to Record<string, string>.
  • packages/services/metadata/eslint.config.js
    • Added new ESLint configuration file.
  • packages/services/metadata/package.json
    • Added `
  • packages/services/metadata/src/index.ts
    • Updated import paths for generated files to include .js extension.
    • Changed type of headers object from { [key: string]: any } to Record<string, string>.
  • packages/services/relayer/eslint.config.js
    • Added new ESLint configuration file.
  • packages/services/relayer/package.json
    • Added lint script to eslint . --max-warnings 0.
    • Updated @types/node to ^25.3.0.
    • Added @repo/eslint-config workspace dependency.
    • Updated vitest to ^4.0.18.
  • packages/services/relayer/src/preconditions/codec.ts
    • Added validation for minAmount to ensure it is a bigint.
    • Refactored encodePrecondition to use object spread syntax for optional properties and return an empty JSON object for unknown precondition types.
  • packages/services/relayer/src/relayer/rpc-relayer/index.ts
    • Imported specific precondition types for improved type safety.
    • Updated getChain function to use unknown type for c parameter in find method.
    • Changed kind property to readonly.
    • Modified status method parameter chainId to _chainId as it's unused.
    • Updated checkPrecondition method to use specific precondition types and directly pass Address objects.
  • packages/services/relayer/src/relayer/standard/eip6963.ts
    • Changed kind property to readonly.
  • packages/services/relayer/src/relayer/standard/local.ts
    • Imported specific precondition types for improved type safety.
    • Changed kind property to readonly.
    • Updated createFromWindow to explicitly type window.ethereum as EIP1193Provider.
    • Modified checkPrecondition method to use specific precondition types and directly pass Address objects.
    • Updated EIP1193ProviderAdapter to correctly type TransactionReceipt.fromRpc parameter.
  • packages/services/relayer/src/relayer/standard/pk-relayer.ts
    • Changed kind property to readonly.
    • Modified checkPrecondition method parameter precondition to _precondition as it's unused.
  • packages/services/relayer/src/relayer/standard/sequence.ts
    • Changed kind property to readonly.
    • Modified checkPrecondition method parameter precondition to _precondition as it's unused.
  • packages/services/relayer/test/preconditions/codec.test.ts
    • Updated decodePrecondition test cases to use unknown as TransactionPrecondition for null/undefined inputs.
    • Adjusted ownerAddress and tokenAddress to be strings in malformed address test cases.
    • Corrected type assertion for minAmount in malformed BigInt test case.
  • packages/services/relayer/test/preconditions/preconditions.test.ts
    • Removed Provider and RpcTransport imports from ox.
    • Added GenericProvider type and createMockProvider helper function.
    • Removed CAN_RUN_LIVE and RPC_URL imports, replacing with a local mock setup.
    • Added ZERO_ADDRESS constant.
    • Updated getProvider to return a mock provider.
    • Modified requireContractDeployed to be a no-op for non-live tests.
    • Refactored precondition test cases to use explicit transactionPrecondition objects and mock provider calls.
  • packages/services/relayer/test/preconditions/selectors.test.ts
    • Updated TEST_ADDRESS and TOKEN_ADDRESS to be string literals.
    • Added helper functions nativePrecondition, erc20Precondition, erc721OwnershipPrecondition for creating test data.
    • Refactored extractChainID and extractSupportedPreconditions test cases to use the new precondition structure and helper functions.
  • packages/services/relayer/test/preconditions/types.test.ts
    • Updated type assertions from undefined as any to undefined as unknown as bigint for precondition constructors.
  • packages/services/relayer/test/relayer/relayer.test.ts
    • Changed RelayerGen import to RpcRelayerGen.
    • Updated FeeTokenType type assertion to RpcRelayerGen.FeeTokenType.
    • Changed mockRelayer.checkPrecondition({} as any) to mockRelayer.checkPrecondition({} as { type: string }).
  • packages/services/userdata/eslint.config.js
    • Added new ESLint configuration file.
  • packages/services/userdata/package.json
    • Added `
  • packages/services/userdata/src/index.ts
    • Updated import paths for generated files to include .js extension.
    • Changed type of headers object from { [key: string]: any } to Record<string, string>.
  • packages/utils/abi/eslint.config.js
    • Added new ESLint configuration file.
  • packages/utils/abi/package.json
    • Added `
  • packages/utils/abi/src/index.ts
    • Updated all import paths to include .js extension for wallet, tokens, and sale ABIs.
  • packages/utils/abi/src/wallet/index.ts
    • Updated all import paths to include .js extension for wallet ABIs.
  • packages/wallet/core/eslint.config.js
    • Added new ESLint configuration file.
    • Disabled @typescript-eslint/no-explicit-any rule for test files.
  • packages/wallet/core/package.json
    • Added lint script to eslint . --max-warnings 0.
    • Updated @types/node to ^25.3.0.
    • Updated @vitest/coverage-v8 to ^4.0.18.
    • Updated dotenv to ^17.3.1.
    • Updated vitest to ^4.0.18.
  • packages/wallet/core/src/bundler/bundlers/pimlico.ts
    • Changed kind property to readonly.
    • Modified catch (_) to catch in pimlico_getUserOperationStatus.
  • packages/wallet/core/src/signers/index.ts
    • Changed extra?: Object to extra?: object in Witnessable interface.
  • packages/wallet/core/src/signers/passkey.ts
    • Changed extra?: Object to extra?: object in witness method.
  • packages/wallet/core/src/signers/pk/index.ts
    • Changed extra?: Object to extra?: object in witness method.
  • packages/wallet/core/src/signers/session/explicit.ts
    • Removed Extensions import.
    • Changed let value: Bytes.Bytes to const value: Bytes.Bytes.
  • packages/wallet/core/src/signers/session/implicit.ts
    • Removed Extensions import.
    • Modified catch (error) to catch in isImplicitlyApproved.
  • packages/wallet/core/src/state/local/index.ts
    • Changed let fromConfig to const fromConfig.
    • Wrapped default case in switch statement with a block.
  • packages/wallet/core/src/state/remote/dev-http.ts
    • Modified catch (e) to catch and catch (textErr) to catch in error handling blocks.
  • packages/wallet/core/src/state/sequence/index.ts
    • Added // ignore comments to empty catch blocks.
    • Wrapped default case in switch statement with a block.
  • packages/wallet/core/src/wallet.ts
    • Removed non-null assertion (!) from status.context.capabilities.erc4337.entrypoint.
    • Changed let hexMessage to const hexMessage.
  • packages/wallet/core/test/constants.ts
    • Added eslint-disable-next-line turbo/no-undeclared-env-vars comments for environment variables.
  • packages/wallet/core/test/envelope.test.ts
    • Removed TEST_ADDRESS_2 constant.
  • packages/wallet/core/test/signers-pk.test.ts
    • Changed payload to _payload in destructuring assignment as it's unused.
  • packages/wallet/core/test/signers-session-implicit.test.ts
    • Removed unused topology variable.
  • packages/wallet/core/test/state/debug.test.ts
    • Removed TEST_HEX constant.
    • Modified complexMethod(data) to complexMethod() in mock objects.
  • packages/wallet/dapp-client/eslint.config.js
    • Added new ESLint configuration file.
  • packages/wallet/dapp-client/eslint.config.mjs
    • Renamed to packages/services/api/eslint.config.js.
  • packages/wallet/dapp-client/package.json
    • Added lint script to eslint . --max-warnings 0.
    • Updated @types/node to ^25.3.0.
    • Updated @vitest/coverage-v8 to ^4.0.18.
    • Updated dotenv to ^17.3.1.
    • Updated happy-dom to ^20.7.0.
    • Updated vitest to ^4.0.18.
  • packages/wallet/dapp-client/src/ChainSessionManager.ts
    • Corrected type assertions for eventListeners to explicitly use Set<ChainSessionManagerEventMap[K]>.
  • packages/wallet/dapp-client/src/DappClient.ts
    • Changed DappClientEventListener type from (data?: any) => void to (data?: unknown) => void.
    • Corrected type assertion for eventListeners to explicitly use Set<DappClientEventMap[K]>.
    • Removed unused transportMode variable in disconnect method.
  • packages/wallet/dapp-client/test/ethauth-proof.test.ts
    • Removed as any type assertions from createSequenceStorageMock.
    • Updated vi.stubGlobal('window', { fetch: fetchMock } as any) to vi.stubGlobal('window', { fetch: fetchMock }).
    • Removed as any type assertions from sendRequestMock resolved values.
  • packages/wallet/primitives-cli/eslint.config.js
    • Added new ESLint configuration file.
  • packages/wallet/primitives-cli/eslint.config.mjs
    • Renamed to packages/services/builder/eslint.config.js.
  • packages/wallet/primitives-cli/package.json
    • Updated @types/node to ^25.3.0.
    • Updated esbuild to ^0.27.3.
    • Updated nodemon to ^3.1.14.
  • packages/wallet/primitives/eslint.config.js
    • Added new ESLint configuration file.
    • Disabled @typescript-eslint/no-explicit-any rule for test files.
  • packages/wallet/primitives/eslint.config.mjs
    • Renamed to packages/services/guard/eslint.config.js.
  • packages/wallet/primitives/package.json
    • Added lint script to eslint . --max-warnings 0.
    • Updated @vitest/coverage-v8 to ^4.0.18.
    • Updated vitest to ^4.0.18.
  • packages/wallet/primitives/src/attestation.ts
    • Imported Hex from ox.
    • Added EncodedAttestation type for JSON serialization.
    • Updated encodeForJson to return EncodedAttestation and use attestation.approvedSigner directly.
    • Updated fromParsed to accept EncodedAttestation.
  • packages/wallet/primitives/src/config.ts
    • Removed isRawNode import.
    • Added EncodedSignerLeaf, EncodedSapientSignerLeaf, EncodedSubdigestLeaf, EncodedAnyAddressSubdigestLeaf, EncodedNestedLeaf, EncodedNodeLeaf, EncodedLeaf, EncodedNode, EncodedTopology types for JSON serialization.
    • Updated type guards (isSignerLeaf, isSapientSignerLeaf, isSubdigestLeaf, isAnyAddressSubdigestLeaf, isNodeLeaf, isNestedLeaf, isNode, isConfig, isLeaf, isTopology) to use unknown type and check for property existence using in cand.
    • Updated encodeTopology and decodeTopology to use EncodedTopology type.
  • packages/wallet/primitives/src/extensions/recovery.ts
    • Removed Network import.
    • Updated type guards (isRecoveryLeaf, isBranch, isTree) to use unknown type and check for property existence using in cand.
    • Updated encodeCalldata payload type to Payload.Recovery<Payload.MayRecoveryPayload> and return type to Hex.Hex.
  • packages/wallet/primitives/src/payload.ts
    • Removed Network, Recovery, MayRecoveryPayload, Payload, TypedDataToSign imports as they are no longer directly used or are re-exported.
  • packages/wallet/primitives/src/signature.ts
    • Removed Signature import from ox.
    • Removed Network import.
    • Changed let sigForCheckpointer to const sigForCheckpointer.
    • Changed let encoded1Size to const encoded1Size.
    • Changed let bytesForSignatureSize to const bytesForSignatureSize.
    • Wrapped default case in recoverTopology with a block.
  • packages/wallet/primitives/src/utils.ts
    • Removed AbiParameters, Hash, Hex imports.
    • Changed let sBytes to const sBytes.
  • packages/wallet/primitives/test/address.test.ts
    • Changed stage2 destructuring to _stage2 to mark it as unused.
  • packages/wallet/primitives/test/attestation.test.ts
    • Removed Address and Hex imports.
  • packages/wallet/primitives/test/config.test.ts
    • Removed Address and Hex imports.
  • packages/wallet/primitives/test/passkeys.test.ts
    • Removed samplePublicKeyWithHashMetadata constant.
    • Modified forEach loops to destructure only used properties (credentialId, userVerification, metadata).
  • packages/wallet/primitives/test/payload.test.ts
    • Removed vi, UserOperation, Hash, TypedDataToSign imports.
    • Removed Payload, Recovery, MayRecoveryPayload imports.
  • packages/wallet/primitives/test/precondition.test.ts
    • Removed Precondition and IntentPrecondition imports.
    • Updated createPrecondition test cases to use unknown as AnyPrecondition for invalid inputs.
  • packages/wallet/primitives/test/signature.test.ts
    • Removed SignatureOfSignerLeafEthSign import.
    • Removed sampleEthSignSignature constant.
    • Updated type assertion for node to SubdigestLeaf.
    • Updated encodeTopology call to use Topology type.
    • Updated fillLeaves call to use NestedLeaf type and Topology type for invalid cases.
    • Modified forEach loops to destructure only used properties (topology).
  • packages/wallet/primitives/test/utils.test.ts
    • Updated type assertions for reviver and fromJSON results to be more specific.
  • packages/wallet/wdk/eslint.config.js
    • Added new ESLint configuration file.
    • Disabled @typescript-eslint/no-explicit-any rule for test files.
  • packages/wallet/wdk/package.json
    • Changed test:ssr script to use .js extension.
    • Added lint script to eslint . --max-warnings 0.
    • Updated @types/node to ^25.3.0.
    • Updated @vitest/coverage-v8 to ^4.0.18.
    • Updated dotenv to ^17.3.1.
    • Updated happy-dom to ^20.7.0.
    • Updated vitest to ^4.0.18.
  • packages/wallet/wdk/src/dbs/auth-commitments.ts
    • Removed Migration import.
  • packages/wallet/wdk/src/dbs/auth-keys.ts
    • Removed Migration import.
  • packages/wallet/wdk/src/dbs/messages.ts
    • Removed Migration import.
  • packages/wallet/wdk/src/dbs/passkey-credentials.ts
    • Removed Migration import.
  • packages/wallet/wdk/src/dbs/recovery.ts
    • Removed Migration import.
  • packages/wallet/wdk/src/dbs/signatures.ts
    • Removed Migration import.
  • packages/wallet/wdk/src/dbs/transactions.ts
    • Removed Migration import.
  • packages/wallet/wdk/src/dbs/wallets.ts
    • Removed Migration import.
  • packages/wallet/wdk/src/identity/signer.ts
    • Removed PersonalMessage import from ox.
    • Removed KeyType import from @0xsequence/identity-instrument.
  • packages/wallet/wdk/src/sequence/handlers/authcode-pkce.ts
    • Removed Address import from ox.
  • packages/wallet/wdk/src/sequence/handlers/devices.ts
    • Modified onStatusChange callback parameter cb to _cb as it's unused.
  • packages/wallet/wdk/src/sequence/handlers/guard.ts
    • Modified onStatusChange callback parameter cb to _cb as it's unused.
    • Added // eslint-disable-next-line no-async-promise-executor comment and wrapped new Promise in a block.
  • packages/wallet/wdk/src/sequence/handlers/identity.ts
    • Removed Bytes import from ox.
  • packages/wallet/wdk/src/sequence/handlers/mnemonic.ts
    • Added // eslint-disable-next-line no-async-promise-executor comment and wrapped new Promise in a block.
  • packages/wallet/wdk/src/sequence/handlers/otp.ts
    • Modified catch (e) to catch in handle method.
    • Added // eslint-disable-next-line no-async-promise-executor comment.
  • packages/wallet/wdk/src/sequence/handlers/passkeys.ts
    • Modified onStatusChange callback parameter cb to _cb as it's unused.
  • packages/wallet/wdk/src/sequence/handlers/recovery.ts
    • Modified catch (e) to catch in getReadySigner.
  • packages/wallet/wdk/src/sequence/manager.ts
    • Changed let relayers to const relayers.
  • packages/wallet/wdk/src/sequence/messages.ts
    • Modified catch (error) to catch in remove method.
  • packages/wallet/wdk/src/sequence/signers.ts
    • Added // ignore comment to empty catch block.
  • packages/wallet/wdk/src/sequence/transactions.ts
    • Modified catch (e) to catch in get method.
  • packages/wallet/wdk/src/sequence/wallets.ts
    • Removed GenericTree, SessionConfig, ManagerOptionsDefaults, GuardRole imports.
    • Commented out buildCappedTreeFromTopology function.
    • Wrapped case 'passkey', case 'mnemonic', case 'email-otp' blocks in createSigner with curly braces.
    • Changed let modules to const modules.
    • Removed catch (error) block in signUp method.
  • packages/wallet/wdk/test/authcode-pkce.test.ts
    • Removed Address and Bytes imports.
    • Modified nitroCommitVerifier and nitroCompleteAuth mock implementations to not use challenge parameter.
  • packages/wallet/wdk/test/authcode.test.ts
    • Removed Bytes import.
    • Changed global.URLSearchParams to globalThis.URLSearchParams.
    • Removed unused result variables from commitAuth calls.
    • Commented out mockSigner variable.
  • packages/wallet/wdk/test/constants.ts
    • Added eslint-disable-next-line turbo/no-undeclared-env-vars comments.
    • Changed let relayers to const relayers and let bundlers to const bundlers.
  • packages/wallet/wdk/test/guard.test.ts
    • Removed GuardRole import.
    • Changed testMessageDigest to _testMessageDigest and testMessage to _testMessage as they are unused.
  • packages/wallet/wdk/test/identity-signer.test.ts
    • Removed Bytes import.
  • packages/wallet/wdk/test/otp.test.ts
    • Removed OtpChallenge import.
  • packages/wallet/wdk/test/passkeys.test.ts
    • Removed Signers import.
  • packages/wallet/wdk/test/recovery.test.ts
    • Removed the literal 1 from line 177.
    • Changed handledMnemonic2 to _handledMnemonic2 as it's unused.
  • packages/wallet/wdk/test/sessions.test.ts
    • Changed let explicitSession to const explicitSession.
  • packages/wallet/wdk/test/test-ssr-safety.js
    • Added /* global console, process */ comment.
    • Updated comments for SSR safety test.
    • Refactored error handling for SSR-related errors and warnings.
  • packages/wallet/wdk/test/transactions.test.ts
    • Removed vi import.
    • Changed updateCount to _updateCount as it's unused.
  • packages/wallet/wdk/test/wallets.test.ts
    • Changed selectorCalls to _selectorCalls as it's unused.
    • Changed firstWallet to _firstWallet as it's unused.
    • Updated wallet: any | undefined to wallet: Address.Address | undefined.
  • repo/ui/eslint.config.js
    • Renamed from repo/ui/eslint.config.mjs.
  • repo/ui/package.json
    • Added `
  • turbo.json
    • Updated $schema URL to https://v2-8-10.turborepo.dev/schema.json.
    • Added test/**/*.js to the lint task's inputs.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/tests.yml
Activity
  • The pull request was created by Dargon789. No further human activity (comments, reviews) is recorded in the provided information.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request is a significant step towards improving code quality and consistency by setting up ESLint across multiple packages. The changes include adding ESLint configurations, updating package scripts to include linting, and fixing a large number of linting errors. The introduction of linting in the pre-commit hook is a great practice. The code refactoring to improve type safety by replacing any with more specific types and using modern JavaScript features is commendable. I've identified a few areas for improvement, mainly concerning the new ESLint configurations and a minor bug in a test. Overall, this is a very positive and impactful change.

Comment thread packages/services/relayer/test/preconditions/preconditions.test.ts
Comment thread packages/services/relayer/src/preconditions/codec.ts
Comment thread packages/wallet/core/eslint.config.js
Comment thread packages/wallet/primitives/eslint.config.js
Comment thread packages/wallet/wdk/eslint.config.js
@Dargon789 Dargon789 merged commit be53079 into Dargon789:master Feb 24, 2026
1 of 7 checks passed
@Dargon789 Dargon789 linked an issue Mar 18, 2026 that may be closed by this pull request
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.

[vc]: #wagmi@foundry-deployment-team

3 participants