Skip to content

cyntax-js/TestVote

Repository files navigation

Contributing to Voteguard

Thank you for your interest in contributing to Voteguard! This document provides guidelines and instructions for contributing.

Code of Conduct

  • Be respectful and inclusive
  • Welcome newcomers and help them get started
  • Focus on constructive feedback
  • Respect differing viewpoints and experiences

Getting Started

  1. Fork the repository
  2. Clone your fork: `git clone https://github.com/yourusername/voteguard.git\`
  3. Create a branch: `git checkout -b feature/your-feature-name`
  4. Make your changes
  5. Test your changes thoroughly
  6. Commit with clear messages: `git commit -m "Add feature: description"`
  7. Push to your fork: `git push origin feature/your-feature-name`
  8. Open a Pull Request

Development Guidelines

Code Style

  • Follow the existing code style
  • Use TypeScript for type safety
  • Write meaningful variable and function names
  • Add comments for complex logic
  • Use Prettier for formatting
  • Run ESLint before committing

TypeScript

  • Avoid using `any` type
  • Define proper interfaces and types
  • Use strict type checking
  • Export types from `types/index.ts`

Components

  • Use functional components with hooks
  • Keep components small and focused
  • Extract reusable logic into custom hooks
  • Use proper prop types
  • Add accessibility attributes

Testing

  • Write tests for new features
  • Ensure existing tests pass
  • Test edge cases
  • Test accessibility

Commits

  • Use clear, descriptive commit messages
  • Follow conventional commits format:
    • `feat:` for new features
    • `fix:` for bug fixes
    • `docs:` for documentation
    • `style:` for formatting
    • `refactor:` for code refactoring
    • `test:` for tests
    • `chore:` for maintenance

Pull Requests

  • Provide a clear description
  • Reference related issues
  • Include screenshots for UI changes
  • Ensure CI passes
  • Request review from maintainers

Project Structure

  • `app/` - Next.js pages and routes
  • `components/` - React components
  • `lib/` - Utilities and helpers
  • `types/` - TypeScript type definitions
  • `config/` - Configuration files
  • `services/` - API services

Questions?

Feel free to open an issue for questions or discussions.

Thank you for contributing!

About

No description, website, or topics provided.

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published