Skip to content

Conversation

@aedwardg
Copy link
Collaborator

@aedwardg aedwardg commented Dec 24, 2024

Closes #2

Included is the initial scaffold for the site:

  • React app with Vite and Typescript
  • eslint/typescript-eslint set up for linting
  • prettier for formatting
  • Github Actions CI for running formatting/linting steps

Comment on lines +6 to +7
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
createRoot(document.getElementById("root")!).render(
Copy link
Collaborator Author

@aedwardg aedwardg Dec 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is a Vite thing or a React thing, but typescript-eslint doesn't like the non-null-assertion here. For this case I think it is fine to have, and removing it is more work than it's worth, so I think it's fine to ignore the linter here.

This rule may only be on because I turned strict checks on for tseslint, but we can always turn those off if it becomes a problem down the line.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@aedwardg aedwardg self-assigned this Dec 25, 2024
Copy link
Member

@ashstewart7 ashstewart7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, excited to be getting started on this!

Comment on lines +6 to +7
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
createRoot(document.getElementById("root")!).render(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

package.json Outdated
"preview": "vite preview"
},
"dependencies": {
"react": "^18.3.1",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

React 19 was released a few weeks ago, let's upgrade to use that version.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this needed to be a hard blocker on the PR, but I agree we should use the newest version of React.
Looks like the npm create vite@latest command hasn't been updated to use React 19 yet. I'll make the change.

@aedwardg aedwardg merged commit f1821a0 into main Dec 25, 2024
2 checks passed
@aedwardg aedwardg deleted the create-initial-react-scaffold branch December 25, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create initial scaffold for community website

4 participants