Skip to content
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

build: implement eslint and prettier #53

Closed
wants to merge 4 commits into from
Closed

Conversation

sambauers
Copy link
Contributor

@sambauers sambauers commented Mar 10, 2023

  • Implemented formatting standards that closely match NextJS
  • Added a linting workflow
  • Prefer arrow functions
  • Stop using default exports

@@ -104,7 +103,7 @@ const CSP_OPTION_NAMES = ['mergeDefaultDirectives', 'reportOnly'] as const
type CSPOptionNamesTuple = typeof CSP_OPTION_NAMES
type CSPOptionNames = CSPOptionNamesTuple[number]
type CSPOptionsConfig = {
[Name in CSPOptionNames]?: Boolean
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was pretty much the only real bug that linting picked up.

@sambauers sambauers marked this pull request as ready for review March 10, 2023 07:32
@UncleClapton
Copy link
Collaborator

Hey! Thanks for the PR, however we already have plans on linting and formatting as I mentioned in #50. My apologies for not being clear that it was a specific implementation I was working on, and not just a general desire to implement the tooling.

I'll get our intended config/tooling up later today when I can. Admittedly, it's only been held back because I got distracted with #41. I was experimenting on ways to tackle it when I was spending time on this project earlier last week.

@sambauers
Copy link
Contributor Author

No problem. Feel free to steal anything from this PR that looks good to you.

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.

2 participants