You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a new t3-app while initializing a git repo with the CLI, the _eslintrc.cjs file is not included by default.
Its being renamed after the git repo is initialized and the files are added, so a git status shows _eslintrc.cjs as deleted, and .eslintrc.cjs as untracked.
Reproduction repo
N/A
To reproduce
npm create t3-app@latest
select yes on the Initialize a new git repository? option
run git status
On branch main
No commits yet
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .env.example
new file: .gitignore
new file: README.md
new file: _eslintrc.cjs
new file: next.config.mjs
new file: package-lock.json
new file: package.json
new file: public/favicon.ico
new file: src/env.mjs
new file: src/pages/_app.tsx
new file: src/pages/index.module.css
new file: src/pages/index.tsx
new file: src/styles/globals.css
new file: tsconfig.json
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
deleted: _eslintrc.cjs
Untracked files:
(use "git add <file>..." to include in what will be committed)
.eslintrc.cjs
Additional information
I think this could be fixed by moving the renameSnyc to before intializeGit call, and would be happy to open a PR for it if this seems correct.
The text was updated successfully, but these errors were encountered:
Provide environment information
System:
OS: Windows 10 10.0.19044
CPU: (16) x64 Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
Memory: 23.49 GB / 31.92 GB
Binaries:
Node: 16.14.2 - C:\Program Files\nodejs\node.EXE
npm: 8.5.0 - C:\Program Files\nodejs\npm.CMD
Describe the bug
When creating a new t3-app while initializing a git repo with the CLI, the _eslintrc.cjs file is not included by default.
Its being renamed after the git repo is initialized and the files are added, so a
git status
shows_eslintrc.cjs
as deleted, and.eslintrc.cjs
as untracked.Reproduction repo
N/A
To reproduce
npm create t3-app@latest
select yes on the Initialize a new git repository? option
run
git status
Additional information
I think this could be fixed by moving the renameSnyc to before
intializeGit
call, and would be happy to open a PR for it if this seems correct.The text was updated successfully, but these errors were encountered: