-
Notifications
You must be signed in to change notification settings - Fork 1
[FEAT]: Setup Front-End with React + Vite #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this 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",
mohvn
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
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:
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: