-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: add import order sorting via prettier #1392
feat: add import order sorting via prettier #1392
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
Hey t3-oss/translators! This PR contains changes to your language. Please review the changes β€οΈ. |
need to actually test this on a generated app |
It should be pretty easy to add an option for prettier since it just needs installing + a single config. None of the other files change. I think that would probably be the best option here if installing it by default is a no go. |
IMO we should have this either everywhere or nowhere. Limiting it to apps with Tailwind makes no sense. This would obviously mean including Prettier with all apps, but I think it might be worth it. So I see three options:
|
I think i vote 3 |
What would change about the eslint config? The default cta one has served my just fine tbh |
It would be either on or off i guess? Maybe add the prettier eslint config We can add this too i think #1197 |
yeah that sounds good. will have a crack and we can see if its any good. A bit dubious of adding to many options. |
@FinnDore is attempting to deploy a commit to the t3-oss Team on Vercel. A member of the Team first needs to authorize it. |
Think its done ( disregarding the sea of lint errors ). Im debating wether it should be I welcome thaughts. |
β¦reate-t3-app into prettier-import-order
Removed the |
Tested this all and i think its good to go now. although i thought that 4 days ago so im ready to be proven wrong. |
Instead of having this as an installer next to the other pacakges, do you tihnk it'd be better to have like ? What pacakges would you like...
o nextAuth
...
? Would you like to enable a more opinionated eslint+prettier setup?
x yes o no |
Good shout, maybe the wording should different though as it sounds like a more strict prettier config is added aswell which is wrong |
I should probably update the ci aswell.... |
cant tell if ive borked the e2e workflow file or if it need approval to run since ive changes it |
Merging to intermediate branch to release a canary |
This reverts commit e1a5245.
bruh - based the intermediate branch off the wrong thing... can you reopen π open against the branch |
Closes #1332
β Checklist
Changelog
Added @ianvs/prettier-plugin-sort-import to the cli, docs and generated cta apps
Screenshots
it also seems to format code blocks which is cool
![image](https://user-images.githubusercontent.com/34718806/235303520-98e005dc-1412-4259-b28f-f50e01a53c0b.png)
π―