Pull request titles should follow the same process but summarizing the branch's purpose.
Pull request descriptions should summarize commits or add additional context if the title is not enough.
I would install Husky to packages, but it does not work nicely with WSL - Run yarn lint and yarn format before merging.
Functional Components include their interface and export themselves under [name].tsx
- This includes
ReactProvidersor reusable components related to[component_name] - Any code using TSX syntax must be in
tsxfiles - Constants and Types are export from
types.ts - Functions related to a
[component_name]that can be extracted from their[name].tsxare exported fromutils.ts
Next Link component is implemented under src/components/link/Link.tsx and uses the src/utils/parseUrl.ts utility to
automatically parse and convert hrefs/paths/slugs/links automatically to internal/external.
Import the Link component from @/components/link/Link.tsx for MOST situations.
Next Link can be leveraged if needed, use the parseUrl util still.
Just globals.css
Functions that are not specific to components are found in a specific [util_name].ts file or utils.ts if its generic.
Website paths and external links are found in their respective paths[Name].ts files.
Slug/Path: /preview/inputs for input components and styling