Skip to content

Latest commit

 

History

History
95 lines (70 loc) · 2.46 KB

File metadata and controls

95 lines (70 loc) · 2.46 KB

Contributing to React Scan

First off, thanks for taking the time to contribute! ❤️

Table of Contents

Project Structure

This is a monorepo containing several packages:

  • packages/scan - Core React Scan package
  • packages/vite-plugin-react-scan - Vite plugin for React Scan
  • packages/extension - VS Code extension

Development Setup

  1. Clone and Install

    git clone https://github.com/aidenybai/react-scan.git
    cd react-scan
    pnpm install
  2. Build all packages

    pnpm build
  3. Testing React Scan

    cd packages/scan
    pnpm build:copy
    • This will build the package and then copy it to your clipboard as an IIFE (immedietely invoked function expression). This will allow you to paste it into the browser console to test it on any website
Screen-2025-05-14-023824.mp4

Contributing Guidelines

Commits

We use conventional commits to ensure consistent commit messages:

  • feat: New features
  • fix: Bug fixes
  • docs: Documentation changes
  • chore: Maintenance tasks
  • test: Adding or updating tests
  • refactor: Code changes that neither fix bugs nor add features

Example: fix(scan): fix a typo

Pull Request Process

  1. Fork the repository
  2. Create your feature branch (git checkout -b feat/amazing-feature)
  3. Commit your changes using conventional commits
  4. Push to your branch
  5. Open a Pull Request
  6. Ask for reviews (@pivanov, @RobPruzan are your friends in this journey)

Development Workflow

  1. TypeScript

    • All code must be written in TypeScript
    • Ensure strict type checking passes
    • No any types unless absolutely necessary
  2. Code Style

    • We use Biome for formatting and linting
    • Run pnpm format to format code
    • Run pnpm lint to check for issues
  3. Documentation

    • Update relevant documentation
    • Add JSDoc comments for public APIs
    • Update README if needed

Getting Help

  • Check existing issues
  • Create a new issue

⚛️ Happy coding! 🚀