-
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
Adding in dev tooling to the contribution process #40
Conversation
prettier eslint husky lint-staged changesets
Allows for new devs to quickly understand the rules being used Increased the strictness of the type checking
.cache/ | ||
.next/ | ||
.nuxt/ |
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.
remove nuxt here to keep it clean
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.
Its just a generic .gitignore that covers 90% of use cases. If it doesn't hurt anything I would rather keep it complete and easily extensible to other projects.
@nexxeln |
VSCode needs a plugin to work and I dont think this is a valid replacement for prettier (which works with eslint as well to prevent overriding rules re: styling) |
|
Again, all of these changes are just to help set a structure so that as the repo continues to grow in size, complexity, and quantity of contributors, an opinionated code standard can be maintained. |
Both of these issues are about having prettier in the template built by create-t3, not having prettier IN create-t3. This PR is specifically for this repo, not adding prettier or eslint into any created templates |
I would've liked it if we had discussed all the tools before you made a PR 😄 . Prettier ConfigPlease change single quotes to false EslintThis looks good to me ChangesetI've never used or heard of this package, what exactly will it do? HuskyI'm kind of 50/50 on this one. I would love to know what other people think. |
AFK for a few hours. Will push an update in a bit. |
Formatted the workspace
Pushed new prettier config with double quotes. Changesets is a way to update the package version, update a CHANGELOG.MD file, and push those changes through to NPM for package releases. Its just a tool I have used before with published packages.
Totally optional, but a nice tool if you're interested. |
Thank you, please format the files also with the new config. Changesets seems cool so why not, but the first time I'll use it I'll poke you with questions on Discord 😄. |
Already re-formatted! Totally happy to jump in anytime. |
Oh lol sorry I didn't look at the commit. I'm still unsure about husky. |
Totally happy to remove it if we need to. The current implementation just runs a lint and format before commit. Without it, it's up to people to lint and format on their own, and although most IDEs have built in settings to do so on save, not everyone is going have the same setups and extensions. This way we keep a relatively sane integrity check in the most "gentle" way possible. |
I think it adds value as the amount of contributors grow. Looking at commits and seeing a bunch of prettier-changes is annoying and makes it harder to see what the commit is actually doing. What tool/setup to use for this I have no opinion on. |
Okay let's do it then! I'll merge |
Adding in dev tooling to the contribution process
PR for issue #39
Happy to walk through individual commits with more detail