Skip to content

chore: upgrade ESLint tooling and improve code quality across packages#226

Merged
matthewjablack merged 1 commit into
masterfrom
chore/eslint-upgrade-and-code-quality-improvements
Jul 14, 2025
Merged

chore: upgrade ESLint tooling and improve code quality across packages#226
matthewjablack merged 1 commit into
masterfrom
chore/eslint-upgrade-and-code-quality-improvements

Conversation

@matthewjablack
Copy link
Copy Markdown
Contributor

Summary

This PR upgrades our ESLint tooling and implements consistent code quality improvements across all packages in the monorepo.

Changes Made

Tooling Updates

Upgraded ESLint from v7 to v8 along with the corresponding TypeScript ESLint plugin from v4 to v5. Also updated eslint-config-prettier, eslint-plugin-prettier, and simple-import-sort to their latest versions. Added the simple-import-sort/exports rule to ensure consistent export ordering throughout the codebase.

Code Quality Improvements

Reorganized imports and exports alphabetically across all packages to improve code consistency and readability. Fixed TypeScript types by replacing BigInt with the proper bigint primitive type. Enhanced type safety by using as const assertions on variant properties in the messaging package. Updated BigNumber usage to use string literals for better precision handling. Simplified the logic in the varIntBytes.ts function and updated tsconfig.json files with consistent outDir and include configurations.

Packages Affected

This touches the bitcoin, bufio, chainmon, checksum, core, leveldb, logger, messaging, noise, and wire packages.

Testing

All existing tests should continue to pass as these changes are purely organizational and don't affect public APIs. The import/export reorganization maintains all existing functionality while improving code structure.

Breaking Changes

None. This is purely internal code organization and tooling improvements that don't affect the public API surface.

@matthewjablack matthewjablack force-pushed the chore/eslint-upgrade-and-code-quality-improvements branch from 0729a9d to 670e495 Compare July 14, 2025 22:31
- upgrade ESLint from v7 to v8 and related plugins
- upgrade TypeScript ESLint from v4 to v5
- add simple-import-sort/exports rule for consistent export ordering
- reorganize imports/exports alphabetically across all packages
- fix TypeScript types: BigInt → bigint, improve type safety
- update tsconfig.json files with consistent build output configuration
- improve BigNumber usage with string literals for precision
- use 'as const' for better type inference on variant properties
@matthewjablack matthewjablack force-pushed the chore/eslint-upgrade-and-code-quality-improvements branch from 670e495 to 4d0893d Compare July 14, 2025 22:39
@matthewjablack matthewjablack merged commit 5ee8af0 into master Jul 14, 2025
2 checks passed
@matthewjablack matthewjablack deleted the chore/eslint-upgrade-and-code-quality-improvements branch July 14, 2025 22:50
matthewjablack added a commit that referenced this pull request Jul 16, 2025
- feat: add single funded DLC support to messaging (#224)
- fix: handle number inputs in computeRoundingModulus (#225)
- chore: upgrade ESLint tooling & improve code quality (#226)
- update: bump all package versions to 1.0.1
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