Skip to content

Conversation

cressie176
Copy link
Collaborator

@cressie176 cressie176 commented Sep 3, 2025

This is the first of a series of pull requests aimed at modernising the amqplib code base, which will eventually mean amqplib is only compatible with Node v16 and above.

This change formats the codebase using biome (oxlint's formatter didn't support indent). Lefthook was configured to re-format on commit, and a "format" script was added to package.json

No other listing or changes were made.

cressie176 and others added 2 commits September 3, 2025 21:46
Documents comprehensive plan for introducing Biome formatter with:
- Node.js v16 engine requirement update
- Biome installation and configuration
- Staged formatting rollout (lib/ first, then all files)
- Test suite validation at each stage
- Lefthook pre-commit hooks for automated formatting

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Update Node.js engine requirement from >=10 to >=16
- Add @biomejs/biome as development dependency with strict formatting rules
- Configure Biome with 2-space indents, 140-char lines, single quotes, trailing commas
- Install Lefthook for automated pre-commit formatting hooks
- Add npm format script for manual code formatting
- Format entire codebase (63 files) with consistent styling
- Update changelog for v1.0.0 major release
- All tests pass with formatted code

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@cressie176
Copy link
Collaborator Author

Thanks for the review @kibertoad. I'm going progress with the linting PRs and merge sequentially when they are all done

@cressie176 cressie176 changed the title Amqplib modernisation 1 Modernisation 1 - Formating Sep 4, 2025
@cressie176 cressie176 changed the title Modernisation 1 - Formating Modernisation 1 - Formating Only Sep 4, 2025
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.

2 participants