-
Notifications
You must be signed in to change notification settings - Fork 811
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
TypeScript styleguide #232
Comments
Thanks for this @sverps ! I think being consistent is the key here. The google guide is huge and we shouldn't try to follow it word by word. Just use it as a reference / starting point and stick to what works for us. We can also use it when we don't have a strong opinion about something, to help us decide.
For JSDocs comments
Left a few notes and... actionable items? And lets keep discussing! Thanks. |
Yep, let's leave it as is: Agree with everything @carletex wrote.
I prefer to use Types
Yes, except types in generics, as @sverps wrote here #231 (comment) Again, regarding default export Next.js supports lazy loading for named exports using So, if you're ok with writing one additional |
My personal opinion, I think we can leave default exports as-is, since it's very common in React. |
I propose choosing and following a style guide to get more consistency throughout the code.
My choice would be to follow google's style guide.
Some possible exceptions:
The text was updated successfully, but these errors were encountered: