Thank you for your interest in contributing! 🎉
# Clone the repository
git clone https://github.com/Jszigeti/axios-error-handler.git
cd axios-error-handler
# Install dependencies
npm install
# Run tests
npm test
# Build the project
npm run build
# Lint and format
npm run lint
npm run formataxios-error-handler/
├── src/ # Source code
├── __tests__/ # Test files
├── dist/ # Build output (generated)
└── .github/ # GitHub workflows and templates
- Fork the repository
- Create a branch for your changes:
git checkout -b feat/my-feature - Make your changes and commit with conventional commits
- Run tests:
npm test - Format code:
npm run format - Lint code:
npm run lint - Push and create a Pull Request
This project uses:
- TypeScript: Strict type checking
- ESLint: Code linting with flat config
- Prettier: Code formatting
- Jest: Testing framework
- Husky: Pre-commit hooks
- lint-staged: Run linters on staged files
Pre-commit hooks automatically:
- Lint and fix code with ESLint
- Format code with Prettier
# Run tests
npm test
# Run tests with coverage
npm test -- --coverage
# Run tests in watch mode
npm test -- --watchWrite tests for:
- New features
- Bug fixes
- Edge cases
We follow Conventional Commits:
feat: add new error handler feature
fix: resolve issue with error messages
docs: update README
chore: update dependencies
test: add missing tests
refactor: simplify error handling logic
Releases are automated via GitHub Release:
- Create a new release on GitHub with a tag (e.g.,
v1.3.0) - The publish workflow automatically:
- Runs tests and linting
- Builds the project
- Publishes to npm
- Updates the GitHub Release with artifacts
Open an issue or reach out to the maintainers!