Skip to content

Conversation

@hmartiins
Copy link
Collaborator

@hmartiins hmartiins commented Jul 14, 2025

Contexto

Esse Pull Request faz a configuração inicial do Front-End do site em React (Vite).

Muitas issues/tasks são necessárias já ter uma estrutura de frontend inicial criada para que a task consiga a se desenvolver. Esse pull request apenas faz a criação do projeto e algumas configurações úteis como:

  • Configuração de linter (ESLint/Prettier);
  • Criação de um workflow para verificar se o commit continua seguindo o padrão de estlização proposto.

A ideia é apenas termos o esqueleto do site funcional já configurado e outras questões como tags de título, estliização e etc serem resolvidas em outras PRs, como mostram as issues #7 #3 como exemplo

Anexos:

Estrutura:

image

@hmartiins hmartiins requested a review from Copilot July 14, 2025 01:28
@hmartiins hmartiins self-assigned this Jul 14, 2025
@hmartiins hmartiins added the enhancement New feature or request label Jul 14, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

A minimal frontend scaffold setup integrating React, TypeScript, Vite, ESLint, and Prettier.

  • Add Vite config with React SWC plugin
  • Define TypeScript project references and separate tsconfigs for app and Node
  • Introduce basic React entrypoint, package scripts, lint/format configs, and CI workflow

Reviewed Changes

Copilot reviewed 14 out of 17 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
frontend/vite.config.ts Configure Vite to use the React SWC plugin
frontend/tsconfig.node.json Add Node-specific TypeScript config for Vite
frontend/tsconfig.json Set up TypeScript project references
frontend/tsconfig.app.json Add TypeScript config for application source
frontend/src/main.tsx Initialize React root and render the App component
frontend/src/App.tsx Add placeholder App component
frontend/package.json Define dependencies, scripts, and devDependencies
frontend/index.html Add HTML template with root div and module script
frontend/eslint.config.js Configure ESLint with TypeScript and React plugins
frontend/README.md Document setup and ESLint configuration tips
frontend/.prettierrc Define Prettier formatting rules
frontend/.prettierignore Exclude files from Prettier formatting
frontend/.gitignore Exclude common files and directories from git
.github/workflows/lint.yml Add GitHub Actions workflow for lint and format checks
Comments suppressed due to low confidence (2)

.github/workflows/lint.yml:18

  • The workflow references frontend/package-lock.json, but that lock file is not committed in the repo; npm ci will fail without it. Please add and commit the lock file or adjust the cache path.
          cache-dependency-path: frontend/package-lock.json

frontend/package.json:15

  • The React version ^19.1.0 does not exist in the npm registry; consider pinning to a stable release like ^18.2.0.
    "react": "^19.1.0",

@hmartiins hmartiins marked this pull request as ready for review July 14, 2025 01:34
@hmartiins hmartiins changed the title Setup frontend [feat]: Setup Front-End with React + Vite Jul 14, 2025
@hmartiins hmartiins changed the title [feat]: Setup Front-End with React + Vite [FEAT]: Setup Front-End with React + Vite Jul 14, 2025
Copy link
Member

@mohvn mohvn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mohvn mohvn merged commit 5b4480f into main Aug 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants