Skip to content
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

bug: prisma uses 4 spaces instead of 2 #2017

Open
iamclaytonray opened this issue Nov 6, 2024 · 0 comments
Open

bug: prisma uses 4 spaces instead of 2 #2017

iamclaytonray opened this issue Nov 6, 2024 · 0 comments

Comments

@iamclaytonray
Copy link

Provide environment information

System:
OS: macOS 15.0.1
CPU: (10) arm64 Apple M1 Max
Memory: 2.22 GB / 32.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
Yarn: 1.22.22 - /opt/homebrew/bin/yarn
npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
pnpm: 7.16.0 - /opt/homebrew/bin/pnpm
bun: 1.1.33 - ~/.bun/bin/bun
Watchman: 2024.10.14.00 - /opt/homebrew/bin/watchman

Describe the bug

It seems that T3 specifically is formatting Prisma with 4 spaces instead of 2. Using yarn prisma format, it does format back to 2 but after saving (format on file save) the file, it goes back to 4 spaces.

I don't have an .editorconfig or any other global settings that would cause this. I have a dozen projects that use Prisma but this is my first t3 app, and this is the first time I've experience this issue. I've been consulting my neural pathways but they seem to come back with inconclusive responses, so here we are 🙃

This happens straight from install (no code changes, etc).

IF this is a feature, could you help me figure out how to disable the feature or change to 2 spaces? Thanks!

Reproduction repo

N/A

To reproduce

Create a t3 app with the latest (standard documentation flow. just make sure to use prisma)

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant