Files
js/biome.json
T
gregfromstl c3d7b662c4 [SDK] Fix: Account switching with connected smart wallets (#5592)
Fixes #5537

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on improving wallet connection handling in the `thirdweb` project, specifically when switching signer accounts and simplifying connection logic for smart wallets.

### Detailed summary
- Updated `biome.json` to add `"noUselessElse": "off"`.
- Modified wallet connection logic in `packages/thirdweb/src/wallets/manager/index.ts` for better handling of active wallets.
- Added tests for connection management in `packages/thirdweb/src/wallets/manager/connection-manager.test.ts`.
- Removed environment variable logging across multiple API routes.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
2024-12-03 01:46:31 +00:00

56 lines
1.4 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/1.9.2/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"nursery": {
"noEnum": "warn",
"noDuplicateElseIf": "error",
"noDynamicNamespaceImportAccess": "error",
"noExportedImports": "error",
"noMissingVarFunction": "error",
"useSortedClasses": "error"
},
"correctness": {
"useHookAtTopLevel": "error",
"noNewSymbol": "error",
"noUnusedImports": "error",
"noUnusedVariables": "error",
"useArrayLiterals": "error"
},
"a11y": {
"useSemanticElements": "off"
},
"style": {
"noRestrictedGlobals": {
"options": { "deniedGlobals": ["Buffer"] },
"level": "error"
},
"noUselessElse": "off"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "space"
},
"overrides": [
{
"include": [
"packages/thirdweb/src/crypto/aes/lib/md5.ts",
"packages/thirdweb/src/utils/promise/p-limit.ts",
"packages/thirdweb/src/utils/bytecode/cbor-decode.ts",
"packages/thirdweb/src/wallets/in-app/native/helpers/wallet/sss.ts",
"packages/thirdweb/src/**/__generated__/**"
],
"linter": {
"enabled": false
}
}
]
}