Contributing to React NIS2 Guard
December 26, 2025 · View on GitHub
Thank you for your interest in contributing to @nis2shield/react-guard! 🛡️
Getting Started
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/react-guard.git - Install dependencies:
npm install - Create a branch:
git checkout -b feature/your-feature-name
Development
# Run the development server
npm run dev
# Run tests
npm test
# Build the library
npm run build
# Type check
npx tsc --noEmit
Pull Request Guidelines
- One feature per PR - Keep changes focused
- Write tests - All new features should include tests
- Update documentation - Update README if adding user-facing features
- Follow TypeScript - Ensure all code is properly typed
- Run checks - Ensure
npm testandnpm run buildpass
Commit Messages
Use conventional commits:
feat:New featuresfix:Bug fixesdocs:Documentation changestest:Adding or updating testsrefactor:Code refactoring
Code Style
- Use TypeScript for all new code
- Follow existing patterns in the codebase
- Use functional components and hooks
- Document public APIs with JSDoc comments
Reporting Issues
When reporting bugs, please include:
- Browser and version
- React version
- Steps to reproduce
- Expected vs actual behavior
Questions?
Open an issue with the question label or contact the maintainers.
Part of the NIS2 Shield ecosystem.