Biome Format#266
Conversation
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #266 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 67 67
Lines 763 763
Branches 128 128
=========================================
Hits 763 763 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This reverts commit 55c64ea.
There was a problem hiding this comment.
Pull Request Overview
Runs biome format across all packages to standardize code style and ordering.
- Swapped default imports to explicit
typeimports and reordered for consistency - Converted
.forEachloops tofor…ofloops in tests - Normalized
package.jsonarrays and updated import paths (node:specifiers) - Added a local
biome.jsonincreate-sei
Reviewed Changes
Copilot reviewed 19 out of 19 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages/sei-global-wallet/src/lib/wallet.ts | Switched to type import and reordered members |
| packages/sei-global-wallet/package.json | Normalized typesVersions arrays |
| packages/registry/src/wallets/tests/index.spec.ts | Replaced .forEach with for…of loops, added type |
| packages/registry/src/tokens/index.ts | Changed to import type for Network |
| packages/registry/src/tokens/tests/index.spec.ts | Replaced loops, added type for DenomUnit |
| packages/registry/src/networks/index.ts | Changed to import type for Network |
| packages/registry/src/networks/tests/index.spec.ts | Replaced loops with for…of |
| packages/registry/src/ibc/index.ts | Changed to import type for Network |
| packages/registry/src/ibc/tests/index.spec.ts | Replaced loops with for…of |
| packages/registry/src/gas/index.ts | Changed to import type for Network |
| packages/registry/src/gas/tests/index.spec.ts | Replaced loops with for…of |
| packages/registry/package.json | Normalized files and keywords arrays |
| packages/precompiles/src/ethers/distributionPrecompile.ts | Reordered imported constants |
| packages/precompiles/src/ethers/addressPrecompile.ts | Reordered ethers imports |
| packages/precompiles/package.json | Normalized keywords array |
| packages/ledger/src/cosmos/seiLedgerOfflineAminoSigner.ts | Consolidated type imports |
| packages/ledger/package.json | Normalized files and keywords arrays |
| packages/create-sei/src/main.ts | Updated node: imports, regex, loops, strict equality |
| packages/create-sei/biome.json | Added local Biome config |
Comments suppressed due to low confidence (2)
packages/create-sei/src/main.ts:89
- The updated regex no longer excludes control characters (e.g.,
\x00-\x1F), which can lead to invalid directory names slipping through. Consider re-adding that range to the pattern to block non-printable characters.
const illegalRe = /[<>:"/\\|?*]/g;
packages/create-sei/src/main.ts:98
- [nitpick] This comment is redundant because the subsequent
ifalready covers these checks; you may remove it or update it to explain any non-obvious rationale.
// Check for illegal characters, Windows reserved names, trailing spaces/dots
Runs biome format on all directories to make things consistent across PRs and dev environments for future development